Skip to content

Commit

Permalink
Pass PGDATA for full-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed May 21, 2024
1 parent 2e5ba46 commit 06210df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stack/base-with-services/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ ARG PGSQL_VERSION
ARG TARGETARCH
# Location of the Postgresql DB
# This variable is automatically picked up by initdb
ENV PGDATA=/home/${NB_USER}/.postgresql
ARG PGDATA_FOLDER=/home/${NB_USER}/.postgresql
ENV PGDATA=${PGDATA_FOLDER}

# Install RabbitMQ and PostgreSQL in a dedicated conda environment.
#
Expand Down
3 changes: 3 additions & 0 deletions stack/full-stack/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# syntax=docker/dockerfile:1
FROM base-with-services as base
ARG PGDATA_FOLDER

FROM lab
ARG PGDATA_FOLDER
ENV PGDATA=${PGDATA_FOLDER}

USER root

Expand Down

0 comments on commit 06210df

Please sign in to comment.