diff options
Diffstat (limited to '_ops')
| -rw-r--r-- | _ops/.ssh/config | 5 | ||||
| -rw-r--r-- | _ops/tour.awwan.org/10_setup.aww | 13 | ||||
| -rw-r--r-- | _ops/tour.awwan.org/11_setup_container.aww | 9 |
3 files changed, 27 insertions, 0 deletions
diff --git a/_ops/.ssh/config b/_ops/.ssh/config new file mode 100644 index 0000000..76e384b --- /dev/null +++ b/_ops/.ssh/config @@ -0,0 +1,5 @@ +Host awwan.org + Hostname awwan.internal + +Host tour.awwan.org + Hostname tour.awwan.internal diff --git a/_ops/tour.awwan.org/10_setup.aww b/_ops/tour.awwan.org/10_setup.aww new file mode 100644 index 0000000..d10805d --- /dev/null +++ b/_ops/tour.awwan.org/10_setup.aww @@ -0,0 +1,13 @@ +sudo mkdir -p /data/awwan/src +sudo chown -R {{.SSHUser}} /data/awwan + +git -C /data/awwan/src clone https://git.sr.ht/~shulhan/awwan . \ +|| git -C /data/awwan/src fetch --all --tags --prune + +git -C /data/awwan/src submodule update --init + +## Currently we use the dev branch for quick fixes. + +git -C /data/awwan/src checkout -B dev +git -C /data/awwan/src reset --hard origin/dev +CGO_ENABLED=0 make -C /data/awwan/src build diff --git a/_ops/tour.awwan.org/11_setup_container.aww b/_ops/tour.awwan.org/11_setup_container.aww new file mode 100644 index 0000000..82c3449 --- /dev/null +++ b/_ops/tour.awwan.org/11_setup_container.aww @@ -0,0 +1,9 @@ +sudo pacman -Sy --noconfirm mkosi + +make -C /data/awwan/src build-tour + +sudo machinectl --force import-tar /data/awwan/awwan-tour.tar +sudo cp /data/awwan/awwan-tour.nspawn /etc/systemd/nspawn/awwan-tour.nspawn +sudo machinectl start awwan-tour + +sudo machinectl -l |
