docker-compose: fix DB Docker building error #463 related wal-e 1.0.0 and azure (#464)

This commit is contained in:
nvjacobo 2020-04-15 02:30:49 -05:00 committed by GitHub
parent 1bfa69db5c
commit 7fd2eb47a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ FROM postgres:9.4-alpine
ENV DEFAULT_TIMEZONE UTC
# Install some packages to use WAL
RUN echo "azure<5.0.0" > pip-constraints.txt
RUN apk add --no-cache \
build-base \
curl \
@ -14,7 +15,7 @@ RUN apk add --no-cache \
py-cryptography \
pv \
libressl-dev \
&& pip --no-cache-dir install 'wal-e<1.0.0' envdir \
&& pip --no-cache-dir install -c pip-constraints.txt 'wal-e<1.0.0' envdir \
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
# Add wale script