Skip to content

Commit

Permalink
changed to install amazons awscli, variables changed to match awscli,…
Browse files Browse the repository at this point in the history
… S3BUCKET_NAME default changed to work with all regions (some regions does not allow capitals or underscore ex. Sydney), AWS_DEFAULT_REGION allows setting region for s3 bucket (if using an existing bucket then it must match), RESTORE will restore the latest backup if set to true.
  • Loading branch information
chillfox committed Feb 5, 2015
1 parent 5a3fecd commit 287c217
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
FROM ubuntu:trusty
MAINTAINER Borja Burgos <[email protected]>

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install curl
RUN curl https://raw.githubusercontent.com/timkay/aws/master/aws -o aws
RUN chmod +x aws
RUN perl aws --install
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install groff awscli

ADD backup.sh /backup.sh
ADD restore.sh /restore.sh
ADD run.sh /run.sh
RUN chmod 755 /*.sh

ENV S3_BUCKET_NAME DOCKER_BACKUPS
ENV EC2_ACCESS_KEY **DefineMe**
ENV EC2_SECRET_KEY **DefineMe**
ENV S3_BUCKET_NAME docker-backups.example.com
ENV AWS_ACCESS_KEY_ID **DefineMe**
ENV AWS_SECRET_ACCESS_KEY **DefineMe**
ENV AWS_DEFAULT_REGION us-east-1
ENV PATHS_TO_BACKUP /paths/to/backup
ENV BACKUP_NAME backup
ENV RESTORE false

CMD ["/backup.sh"]
CMD ["/run.sh"]

0 comments on commit 287c217

Please sign in to comment.