From 66dfea378feaf97a8475ad0e6527d505868b2465 Mon Sep 17 00:00:00 2001 From: Pierre Mauduit Date: Thu, 18 Jul 2019 16:18:39 +0200 Subject: [PATCH] Include the init.sql directly in the docker image See #22 --- docker-compose.yml | 1 - postgresql/Dockerfile | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c74f227..05674bd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,6 @@ services: - "5435:5432" volumes: - ./data/db:/var/lib/postgresql/data - - ./postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql solr: build: solr7/ diff --git a/postgresql/Dockerfile b/postgresql/Dockerfile index 0a66f7d..9d26126 100644 --- a/postgresql/Dockerfile +++ b/postgresql/Dockerfile @@ -68,6 +68,8 @@ VOLUME /var/lib/postgresql/data COPY testdata /opt COPY init-postgres /opt COPY dvinstall.zip /opt +COPY init.sql /docker-entrypoint-initdb.d/ + WORKDIR /opt RUN unzip dvinstall.zip WORKDIR /opt/dvinstall