From c836ea89a48f53ec1dd05c1dcdc606bb44c8b619 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 22 Jan 2023 21:06:07 +0330 Subject: update --- terminaldweller.com/cgit/bootstrap/Dockerfile | 8 +++++--- terminaldweller.com/cgit/bootstrap/bootstrap.sh | 1 - terminaldweller.com/cgit/bootstrap/crontab | 1 - terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 terminaldweller.com/cgit/bootstrap/crontab (limited to 'terminaldweller.com/cgit/bootstrap') diff --git a/terminaldweller.com/cgit/bootstrap/Dockerfile b/terminaldweller.com/cgit/bootstrap/Dockerfile index 2467f36..be4f278 100644 --- a/terminaldweller.com/cgit/bootstrap/Dockerfile +++ b/terminaldweller.com/cgit/bootstrap/Dockerfile @@ -1,8 +1,10 @@ FROM alpine:3.16 -RUN apk update && apk add --no-cache git cronie busybox-initscripts +#RUN apk update && apk add --no-cache git cronie busybox-initscripts +RUN apk update && apk add --no-cache git apk-cron # RUN rc-service crond start && rc-update add crond COPY ./bootstrap.sh /bootstrap.sh COPY ./docker-entrypoint.sh /docker-entrypoint.sh -COPY ./crontab /etc/crontabs/root -RUN chmod 0744 /bootstrap.sh +COPY ./cron /etc/periodic/15min/cron +# COPY ./crontab /etc/crontabs/root +# RUN chmod 0744 /bootstrap.sh ENTRYPOINT ["/docker-entrypoint.sh"] diff --git a/terminaldweller.com/cgit/bootstrap/bootstrap.sh b/terminaldweller.com/cgit/bootstrap/bootstrap.sh index 3481546..ba2e1b0 100755 --- a/terminaldweller.com/cgit/bootstrap/bootstrap.sh +++ b/terminaldweller.com/cgit/bootstrap/bootstrap.sh @@ -14,7 +14,6 @@ REPOS="cgrep \ devourer \ hived \ mdrtl \ - simplex \ scripts \ vagrantboxes \ dockerimages \ diff --git a/terminaldweller.com/cgit/bootstrap/crontab b/terminaldweller.com/cgit/bootstrap/crontab deleted file mode 100644 index 2346740..0000000 --- a/terminaldweller.com/cgit/bootstrap/crontab +++ /dev/null @@ -1 +0,0 @@ -0 */6 * * * /bootstrap.sh --update diff --git a/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh b/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh index d6d7009..2f67a11 100755 --- a/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh +++ b/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh @@ -5,4 +5,4 @@ set -x . /bootstrap.sh bootstrap update_repos -crond -n -s -P +crond -f -l 2 -- cgit v1.2.3