add Docker

This commit is contained in:
2019-08-04 20:06:12 +02:00
parent e31282e24e
commit 6d7f91e002
10 changed files with 777 additions and 1 deletions

16
docker/postgresql/Dockerfile Executable file
View File

@@ -0,0 +1,16 @@
FROM postgres:11
# ZomboDB
RUN apt-get update && apt-get -y install wget libcurl4-openssl-dev
COPY zombodb_stretch_pg11-10-1.0.3_amd64.deb /tmp/zombodb_stretch_pg11-10-1.0.3_amd64.deb
RUN dpkg -i /tmp/zombodb_stretch_pg11-10-1.0.3_amd64.deb && \
rm -f /tmp/zombodb_stretch_pg11-10-1.0.3_amd64.deb
COPY postgresql.conf /tmp/postgresql.conf
COPY extension.sh /docker-entrypoint-initdb.d/000-extension.sh
COPY setup.sh /docker-entrypoint-initdb.d/100-setup.sh
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 5432
CMD ["postgres"]