forked from nickbreen/docker-mysql-backup-cron
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
23 lines (18 loc) · 860 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM nickbreen/cron:v1.0.0
MAINTAINER Nick Breen <[email protected]>
MAINTAINER Daisuke Baba
RUN apt-get -qqy update && \
DEBIAN_FRONTEND=noninteractive apt-get -qqy install \
mysql-client apache2-utils python-dev python-pip \
libffi-dev libssl-dev && \
apt-get -qqy clean && \
pip install s3cmd python-openstackclient python-swiftclient gsutil
ENV DBS="" MYSQL_HOST="mysql" STORAGE_TYPE="local" PREFIX="" DAILY_CLEANUP="0" MAX_DAILY_BACKUP_FILES="7"
ENV ACCESS_KEY="" SECRET_KEY="" BUCKET="" REGION="us-east-1"
ENV BOTO_PATH="" GC_BUCKET=""
ENV OS_TENANT_NAME="" OS_USERNAME="" OS_PASSWORD="" CONTAINER="" OS_AUTH_URL=""
ENV BACKUP_DIR=""
ENV CRON_D_BACKUP="0 1,9,17 * * * root /backup.sh | logger"
COPY rc.local /etc/rc.local
COPY cleanup_daily.sh /etc/cron.daily/cleanup
COPY backup.sh restore.sh _list.sh _delete.sh _validate.sh /