diff --git a/localhost/caskd/daemons/dcron/Containerfile b/localhost/caskd/daemons/dcron/Containerfile new file mode 100644 index 0000000..d99f9a1 --- /dev/null +++ b/localhost/caskd/daemons/dcron/Containerfile @@ -0,0 +1,7 @@ +FROM alpine + +RUN --network=host apk add dcron + +RUN mkdir -p /var/spool/cron /etc/crontabs + +CMD ["/usr/sbin/crond", "-fP", "-L", "/dev/stderr"] diff --git a/localhost/caskd/daemons/soju/Containerfile b/localhost/caskd/daemons/soju/Containerfile new file mode 100644 index 0000000..1482ebb --- /dev/null +++ b/localhost/caskd/daemons/soju/Containerfile @@ -0,0 +1,9 @@ +FROM alpine:latest + +RUN --network=host apk add soju + +ADD config /etc/soju/config + +RUN mkdir -p /run/soju /var/lib/soju + +CMD ["soju", "-config", "/etc/soju/config"] diff --git a/localhost/caskd/daemons/soju/config b/localhost/caskd/daemons/soju/config new file mode 100644 index 0000000..525493c --- /dev/null +++ b/localhost/caskd/daemons/soju/config @@ -0,0 +1,5 @@ +db sqlite3 /var/lib/soju/main.db +message-store fs /var/lib/soju/logs/ + +listen irc+insecure://localhost +listen unix+admin:// diff --git a/localhost/caskd/daemons/soju/runner.sh b/localhost/caskd/daemons/soju/runner.sh new file mode 100755 index 0000000..efd761c --- /dev/null +++ b/localhost/caskd/daemons/soju/runner.sh @@ -0,0 +1,9 @@ +#!/bin/sh +podman create \ + --replace \ + --read-only \ + --network=host \ + --name soju \ + -v '/var/lib/soju:/var/lib/soju' \ + -v '/etc/resolv.conf:/etc/resolv.conf:ro' \ + localhost/caskd/daemons/soju:latest diff --git a/localhost/caskd/linux/buildenv/Containerfile b/localhost/caskd/dev/linux/Containerfile similarity index 100% rename from localhost/caskd/linux/buildenv/Containerfile rename to localhost/caskd/dev/linux/Containerfile diff --git a/localhost/caskd/scheduled/alpine-rsync/Containerfile b/localhost/caskd/scheduled/alpine-rsync/Containerfile new file mode 100644 index 0000000..c235d5e --- /dev/null +++ b/localhost/caskd/scheduled/alpine-rsync/Containerfile @@ -0,0 +1,5 @@ +FROM localhost/caskd/daemons/dcron:latest + +RUN --network=host apk add rsync + +ADD cron /etc/crontabs/root diff --git a/localhost/caskd/scheduled/alpine-rsync/cron b/localhost/caskd/scheduled/alpine-rsync/cron new file mode 100644 index 0000000..5af8f52 --- /dev/null +++ b/localhost/caskd/scheduled/alpine-rsync/cron @@ -0,0 +1,10 @@ +#!/bin/sh +rsync \ + -avuP \ + --hard-links \ + --delete \ + --delay-updates \ + --delete-delay \ + --timeout=600 \ + rsync://rsync.alpinelinux.org/alpine/ \ + /run/repo/ diff --git a/localhost/caskd/scheduled/alpine-rsync/runner.sh b/localhost/caskd/scheduled/alpine-rsync/runner.sh new file mode 100755 index 0000000..7c3fa06 --- /dev/null +++ b/localhost/caskd/scheduled/alpine-rsync/runner.sh @@ -0,0 +1,9 @@ +#!/bin/sh +podman create \ + --replace \ + --read-only \ + --network=host \ + --name alpine-rsync \ + -v '/var/lib/alpine-repo:/run/repo' \ + -v '/etc/resolv.conf:/etc/resolv.conf:ro' \ + localhost/caskd/scheduled/alpine-rsync:latest diff --git a/localhost/config.mk b/localhost/config.mk index fafedc6..981104f 100644 --- a/localhost/config.mk +++ b/localhost/config.mk @@ -1,3 +1,6 @@ +localhost/caskd/scheduled/alpine-rsync/${BUILD_ID_OUT}: \ + localhost/caskd/daemons/dcron/${BUILD_ID_OUT} + # Wine WINEDEPS := localhost/caskd/archlinux/wine/${BUILD_ID_OUT}