Advertisement
Guest User

Untitled

a guest
Feb 12th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ARG POSTGRES_VERSION=10
  2. FROM postgres:${POSTGRES_VERSION}-alpine
  3. MAINTAINER Taylor Christie taylor.christie@getyardstick.com
  4.  
  5. #install bup
  6. RUN apk --update add python python-dev py-pip make g++ gcc git bash man && \
  7. git clone https://github.com/bup/bup && \
  8. cd bup && \
  9. make && \
  10. make install && \
  11. pip install awscli && \
  12. apk -v --purge del make g++ gcc bash py-pip && \
  13. rm -rf /var/cache/apk/* /bup
  14.  
  15.  
  16. COPY ./postgres/e.sh /entrypoint.sh
  17.  
  18.  
  19. RUN chmod +x /entrypoint.sh
  20.  
  21. ENV DB_HOST=localhost
  22. ENV DB_USER=user
  23. ENV DB_PASS=pass
  24. ENV DB_NAME=name
  25. # 15 minutes
  26. ENV waitInSeconds=900
  27. ENV S3_BUCKET=example
  28.  
  29. VOLUME [ "/project" ]
  30.  
  31.  
  32. ENV BUP_DIR=/project/bup
  33.  
  34.  
  35. ENTRYPOINT [ "/entrypoint.sh" ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement