Finwë
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
4 additions and
4 deletions
-
postgres-backup-s3/Dockerfile
-
postgres-backup-s3/install.sh
-
postgres-backup-s3/run.sh
|
|
@ -1,4 +1,4 @@ |
|
|
|
FROM webdevops/go-crond:master-alpine |
|
|
|
FROM webdevops/go-crond:main-alpine |
|
|
|
LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>" |
|
|
|
|
|
|
|
ADD install.sh install.sh |
|
|
|
|
|
@ -4,8 +4,8 @@ |
|
|
|
set -eo pipefail |
|
|
|
|
|
|
|
apk update |
|
|
|
apk add openssl aws-cli |
|
|
|
apk add postgresql-client --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/main |
|
|
|
apk add openssl aws-cli |
|
|
|
apk add postgresql-client |
|
|
|
|
|
|
|
# cleanup |
|
|
|
rm -rf /var/cache/apk/* |
|
|
@ -9,6 +9,6 @@ fi |
|
|
|
if [ "${SCHEDULE}" = "**None**" ]; then |
|
|
|
sh backup.sh |
|
|
|
else |
|
|
|
echo -e "SHELL=/bin/sh\n${SCHEDULE} /bin/sh /backup.sh" > /etc/crontabs/root |
|
|
|
echo -e "SHELL=/bin/sh\n${SCHEDULE} root /bin/sh /backup.sh" > /etc/crontabs/root |
|
|
|
exec go-crond /etc/crontabs/root |
|
|
|
fi |