added dockerfile
This commit is contained in:
parent
1690f147b8
commit
a8e0962f13
|
@ -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"
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue