Fix cron service and use direct ipv6 to nld.t1.alpinelinux.org

This commit is contained in:
Alex D. 2024-08-20 20:18:20 +00:00
parent 965cba86a6
commit 6224506283
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
5 changed files with 13 additions and 11 deletions

View File

@ -0,0 +1,5 @@
FROM alpine
RUN mkdir -p /var/spool/cron /etc/crontabs
CMD ["busybox", "crond", "-f", "-d", "8"]

View File

@ -1,7 +0,0 @@
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

@ -1,5 +1,6 @@
FROM localhost/caskd/daemons/dcron:latest
FROM localhost/caskd/daemons/cron:latest
RUN --network=host apk add rsync
ADD cron /etc/crontabs/root
RUN echo "0 * * * * /usr/libexec/alpine-rsync" > /etc/crontabs/root
ADD cron /usr/libexec/alpine-rsync

4
localhost/caskd/scheduled/alpine-rsync/cron Normal file → Executable file
View File

@ -6,5 +6,7 @@ rsync \
--delay-updates \
--delete-delay \
--timeout=600 \
rsync://rsync.alpinelinux.org/alpine/ \
rsync://'[2604:1380:4601:dc00::1]'/alpine/ \
/run/repo/
# TODO: Use rsync://rsync.alpinelinux.org/alpine/ when they get anycast v6

View File

@ -1,5 +1,6 @@
localhost/caskd/scheduled/alpine-rsync/${BUILD_ID_OUT}: \
localhost/caskd/daemons/dcron/${BUILD_ID_OUT}
localhost/caskd/scheduled/alpine-rsync/cron \
localhost/caskd/daemons/cron/${BUILD_ID_OUT}
# Wine
WINEDEPS := localhost/caskd/archlinux/wine/${BUILD_ID_OUT}