Add soju and periodic workers, rename linux work container
This commit is contained in:
parent
692bda56d5
commit
d5edfaff97
7
localhost/caskd/daemons/dcron/Containerfile
Normal file
7
localhost/caskd/daemons/dcron/Containerfile
Normal 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"]
|
9
localhost/caskd/daemons/soju/Containerfile
Normal file
9
localhost/caskd/daemons/soju/Containerfile
Normal 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"]
|
5
localhost/caskd/daemons/soju/config
Normal file
5
localhost/caskd/daemons/soju/config
Normal 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://
|
9
localhost/caskd/daemons/soju/runner.sh
Executable file
9
localhost/caskd/daemons/soju/runner.sh
Executable 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
|
5
localhost/caskd/scheduled/alpine-rsync/Containerfile
Normal file
5
localhost/caskd/scheduled/alpine-rsync/Containerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM localhost/caskd/daemons/dcron:latest
|
||||
|
||||
RUN --network=host apk add rsync
|
||||
|
||||
ADD cron /etc/crontabs/root
|
10
localhost/caskd/scheduled/alpine-rsync/cron
Normal file
10
localhost/caskd/scheduled/alpine-rsync/cron
Normal 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/
|
9
localhost/caskd/scheduled/alpine-rsync/runner.sh
Executable file
9
localhost/caskd/scheduled/alpine-rsync/runner.sh
Executable 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
|
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user