added dockerfile

This commit is contained in:
kolaente 2018-01-31 11:34:59 +01:00
parent 1690f147b8
commit a8e0962f13
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 14 additions and 2 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM alpine:3.7
RUN apk add --no-cache mysql-client jq && \
mkdir /data/config -p && mkdir /data/backups
ADD backup.sh /data/backup.sh
ENV DB_BACKUP_HOSTS_FILE=/data/config/backup_hosts.json \
DB_BACKUP_FOLDER=/data/backups
VOLUME /data/config
VOLUME /data/backups
ENTRYPOINT "./data/backup.sh"

View File

@ -10,7 +10,6 @@
### TODO
* Add example on how to use it -> example `backup_hosts.json`
* Add options to configure it
* Add environment variables to configure backup + hosts file location
* Add option to configure max number of backups to keep
* Dockerimage
* Configurable (Environment variables) Cron interval