Go to file
2024-02-23 09:43:54 +01:00
systemd-templates Add persistent setting to machines-start timer, as it does not trigger every day without it 2024-02-23 09:43:54 +01:00
.gitignore Initial commit 2022-07-24 20:28:08 +02:00
conts-snap.sh Set scripts to new run_directory norm 2022-09-22 18:50:02 +02:00
docker-upgrade.sh Add executable bit to scripts 2022-07-25 11:01:40 +02:00
install.sh Add machines-start to install script and README 2024-02-21 10:40:40 +01:00
README.md Add machines-start to install script and README 2024-02-21 10:40:40 +01:00
variables.conf.template Set Docker upgrade process as optional 2022-08-18 15:41:55 +02:00

Containers management

These scripts and Systemd units manage the daily snapshoting of our Nspawn containers, and (optionally) update of Docker containers.

Introduction

All running Nspawn containers are stopped, snapshoted (using Btrfs subvolumes) and restarted

Files

  • conts-snap.sh runs the main process, which snapshots the Nspawn containers.
  • docker-upgrade.sh pulls the newest version of running Docker containers.
  • variables.conf.template contains examples variables definitions, and should be copied locally to variables.conf (with any required modifications).
  • systemd-templates/ contains Systemd units templates for running the scripts unattended.
    • specifically, machines-start.timer is a daily permanent trigger to start all enabled containers.

Installation

  • install.sh script copies Systemd templates to their destination, and enables conts-snap and docker-upgrade timer.

TODO

  • RAS