Skip to content
Snippets Groups Projects
Commit d0975288 authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

user root in building

parent 27a5ee55
No related branches found
No related tags found
2 merge requests!3Launch script,!2Refactoring : all scripts in Dockerfiles/python/scripts
Pipeline #44267 passed
......@@ -4,6 +4,7 @@ FROM postgis/postgis
# Create another dir for pgdata than /var/postgresql/data/
# see http://heidloff.net/article/deploying-postgres-on-openshift/
USER root
ENV PGDATA=/var/lib/postgresql/data/pgdata
# RUN mkdir arb-data
......@@ -16,4 +17,6 @@ chmod 777 /$PGDATA
# Entry point.
COPY ./db-init/ /docker-entrypoint-initdb.d/
# USER non-root-postgres
RUN ls -l /docker-entrypoint-initdb.d/
USER non-root-postgres
......@@ -27,8 +27,7 @@ spec:
claimName: pvc-01-__NAMESPACE__-claim
containers:
- name: calqul-db-__NAMESPACE_ENV__
# image: registry.forge.grandlyon.com/erasme/script-recalcul-calque/calqul-db-__NAMESPACE_ENV__
image: postgis:postgis
image: registry.forge.grandlyon.com/erasme/script-recalcul-calque/calqul-db-__NAMESPACE_ENV__
imagePullPolicy: Always
ports:
- containerPort: 5432
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment