Merge pull request #34 from Kedu-SCCL/master

Install alpine package 'tzdata' to allow passing timezone as environm…
This commit is contained in:
Fco. Javier Delgado del Hoyo 2020-10-04 11:54:49 +02:00 committed by GitHub
commit 995f00f257
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
FROM alpine:3.12
LABEL maintainer "Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>"
RUN apk add --update bash mysql-client gzip openssl && rm -rf /var/cache/apk/*
RUN apk add --update tzdata bash mysql-client gzip openssl && rm -rf /var/cache/apk/*
ARG OS=alpine-linux
ARG ARCH=amd64

View file

@ -23,7 +23,7 @@ docker container run -d \
- `MYSQL_PASS`: The password of your mysql database.
- `MYSQL_DB`: The database name to dump. Default: `--all-databases`.
- `MYSQLDUMP_OPTS`: Command line arguments to pass to mysqldump. Example: `--single-transaction`.
- `CRON_TIME`: The interval of cron job to run mysqldump. `0 3 * * sun` by default, which is every Sunday at 03:00.
- `CRON_TIME`: The interval of cron job to run mysqldump. `0 3 * * sun` by default, which is every Sunday at 03:00. It uses UTC timezone.
- `MAX_BACKUPS`: The number of backups to keep. When reaching the limit, the old backup will be discarded. No limit by default.
- `INIT_BACKUP`: If set, create a backup when the container starts.
- `INIT_RESTORE_LATEST`: If set, restores latest backup.