diff --git a/README.md b/README.md index 59c5166..a17050c 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,12 @@ Set Root-Password (by hand) # groupadd containers # useradd -m -g containers containers # passwd containers + +For containers User, add the following to ~/.bash_profile: + +# User specific environment and startup programs +export XDG_RUNTIME_DIR=/run/user/$(id -u) + # hostnamectl set-hostname onyx.nbit.ch # timedatectl set-timezone Europe/Zurich # dnf install glibc-langpack-de @@ -247,6 +253,25 @@ export XDG_RUNTIME_DIR=/run/user/$(id -u) containers$ touch /data/traefik/acme.json containers$ chmod 0600 /data/traefik/acme.json +!!!!!!!!!!!!!! +IMPORTANT: we changed the startup Method to Quadlets, put into +~containers/.config/containers/systemd/ + +Example of such a quadlet config: + +[containers@onyx-dev ~]$ more ~containers/.config/containers/systemd/onyx-dev-mqtt.kube +[Unit] +Description=MQTT +Before=local-fs.target + +[Kube] +Yaml=/home/containers/onyx-dev_pods/mqtt/mqtt.yaml + +[Install] +# Start by default on boot +WantedBy=multi-user.target default.target +!!!!!!!!!!!!!! + containers$ mkdir -p ~/.config/systemd/user/ containers$ cd ~/.config/systemd/user/