Add Wal-E backup support

This commit is contained in:
Pan Luo committed 2016-04-20 02:13:36 -07:00
1 parent 7d89531c4a
commit ba31a0da79
6 files changed
+93 -1

No files matched your search

+16 -1
View File
@@ -1,3 +1,18 @@
FROM postgres:9.4
RUN apt-get update \
&& apt-get install -y python-dev lzop pv daemontools curl build-essential \
&& curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python \
&& pip install wal-e \
&& apt-get remove -y build-essential python-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD make_db.sh /docker-entrypoint-initdb.d/
ADD setup-wale.sh /docker-entrypoint-initdb.d/
COPY docker-entrypoint1.sh /
ENTRYPOINT ["/docker-entrypoint1.sh"]
CMD ["postgres"]