Add soju and periodic workers, rename linux work container

This commit is contained in:
Alex D. 2024-08-20 14:40:04 +00:00
parent 692bda56d5
commit d5edfaff97
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
9 changed files with 57 additions and 0 deletions

View File

@ -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"]

View File

@ -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"]

View File

@ -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://

View File

@ -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

View File

@ -0,0 +1,5 @@
FROM localhost/caskd/daemons/dcron:latest
RUN --network=host apk add rsync
ADD cron /etc/crontabs/root

View File

@ -0,0 +1,10 @@
#!/bin/sh
rsync \
-avuP \
--hard-links \
--delete \
--delay-updates \
--delete-delay \
--timeout=600 \
rsync://rsync.alpinelinux.org/alpine/ \
/run/repo/

View File

@ -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

View File

@ -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}