From fe80588c0788d9d49a50a3951b0244e1bf2e9339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Fri, 31 May 2024 16:39:22 +0100 Subject: [PATCH] documentation --- README.md | 54 ++++++++++++++++++--------------- services/promtail/docker-run.sh | 3 +- services/telegraf/docker-run.sh | 2 +- 3 files changed, 31 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index e157f3b..f0199df 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,18 @@ Welcome to homesrv01.dev.lan git page. Currently hosted on a proxmox ubuntu container. -Distributor ID: Ubuntu -Description: Ubuntu 23.04 -Release: 23.04 -Codename: lunar -Kernel: 5.15.111-1-pve - ```bash -# check ubuntu release -lsb_release -a +# lsb_release -a -# check kernel version -uname -r +Distributor ID: Ubuntu +Description: Ubuntu 23.10 +Release: 23.10 +Codename: mantic + +# uname -r +6.8.4-3-pve ``` + ## Development / Maintenance Environment Currently using docker code server as an editor. @@ -34,7 +33,6 @@ apt install curl -y apt install git -y curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh docker run hello-world && docker info -docker volume create --driver local --opt type=none --opt device=/ --opt o=bind host_fs apt install sshfs ``` @@ -57,24 +55,18 @@ PermitRootLogin no systemctl restart ssh ``` - -## Update System +## Update ```bash -apt update -y && apt upgrade -y && apt autoremove -y +scripts/auto-update.sh +``` +cron +```bash +ln -s $PWD/scripts/auto-update.sh /etc/cron.daily/auto-update ``` -if error on update because of EOL [check oficial documentation](https://help.ubuntu.com/community/EOLUpgrades#SpecificOlder) - -## logs & Promtail - -Check folder docker/promtail for more information - - - ## Services - ### External volumes ``` @@ -91,6 +83,20 @@ for more information [check](https://git.limbosolutions.com/kb/portainer) services/portainer/docker-run.sh ``` +### Promtail + +#### Setup & Update +``` bash +services/promtail/docker-run.sh +``` + +### telegraf + +#### Setup & Update +``` bash +services/telegraf/docker-run.sh +``` + ### nginx #### Setup & Update @@ -105,8 +111,6 @@ services/nginx/docker-run.sh services/code-server/docker-run.sh ``` - - ### home assistant [Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant) diff --git a/services/promtail/docker-run.sh b/services/promtail/docker-run.sh index b7a08d9..3351e13 100755 --- a/services/promtail/docker-run.sh +++ b/services/promtail/docker-run.sh @@ -1,9 +1,8 @@ #! /bin/bash -# must be executed from repo promtail root folder docker container stop promtail docker container remove promtail -scriptPath=$(dirname "$0") +scriptPath="$(dirname "$(readlink -f "$0")")" docker run -d \ --name promtail \ diff --git a/services/telegraf/docker-run.sh b/services/telegraf/docker-run.sh index 1590bcf..f2bf557 100755 --- a/services/telegraf/docker-run.sh +++ b/services/telegraf/docker-run.sh @@ -5,7 +5,7 @@ docker pull telegraf docker container stop telegraf docker container remove telegraf -scriptPath=$(dirname "$0") +scriptPath="$(dirname "$(readlink -f "$0")")" docker run -d --name=telegraf \ -v /var/run/docker.sock:/var/run/docker.sock \