Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Script recalcul calque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ERASME
Script recalcul calque
Commits
9620d7d8
Commit
9620d7d8
authored
2 years ago
by
Pierre-Gilles Levallois
Browse files
Options
Downloads
Patches
Plain Diff
change image building
parent
d0975288
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!3
Launch script
,
!2
Refactoring : all scripts in Dockerfiles/python/scripts
Pipeline
#44269
passed
2 years ago
Stage: Build Calqul
Stage: Deploy Calqul
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfiles/db/Dockerfile
+26
-16
26 additions, 16 deletions
Dockerfiles/db/Dockerfile
with
26 additions
and
16 deletions
Dockerfiles/db/Dockerfile
+
26
−
16
View file @
9620d7d8
# ARB::Base de données postgis pour le calcul du calque de plantabilité
#
# ARB::Base de données postgis pour le calcul du calque de plantabilité
FROM
postgis/postgis
#
FROM postgis/postgis
# Create another dir for pgdata than /var/postgresql/data/
# # Create another dir for pgdata than /var/postgresql/data/
# see http://heidloff.net/article/deploying-postgres-on-openshift/
# # see http://heidloff.net/article/deploying-postgres-on-openshift/
USER
root
# USER root
# ENV PGDATA=/var/lib/postgresql/data/pgdata
# # RUN mkdir arb-data
# RUN groupadd non-root-postgres-group && \
# useradd non-root-postgres-user --group non-root-postgres-group && \
# mkdir -p $PGDATA && \
# chown -R non-root-postgres-user:non-root-postgres-group /$PGDATA && \
# chmod 777 /$PGDATA
# # Entry point.
# COPY ./db-init/ /docker-entrypoint-initdb.d/
# RUN ls -l /docker-entrypoint-initdb.d/
ENV
PGDATA=/var/lib/postgresql/data/pgdata
# USER non-root-postgres
# RUN mkdir arb-data
RUN
groupadd non-root-postgres-group
&&
\
FROM
mdillon/postgis:10-alpine
useradd non-root-postgres-user --group non-root-postgres-group && \
mkdir -p $PGDATA && \
USER
root
chown -R non-root-postgres-user:non-root-postgres-group /$PGDATA && \
chmod 777 /$PGDATA
# Entry point.
RUN
chown
postgres:0
-R
${
PGDATA
}
COPY
./db-init/ /docker-entrypoint-initdb.d/
RUN
ls
-l
/docker-entrypoint-initdb.d/
USER
postgres
USER
non-root-postgres
COPY
./db-init/ /docker-entrypoint-initdb.d/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment