Skip to content

Commit

Permalink
To hell with it
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed May 26, 2024
1 parent 2d0e8f4 commit a2a64f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions stack/base-with-services/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ WORKDIR /opt/
ARG AIIDA_VERSION
ARG PGSQL_VERSION
ARG TARGETARCH

# Location of the Postgresql DB
# This variable is automatically picked up by initdb
ARG PGDATA_FOLDER=/home/${NB_USER}/.postgresql
ENV PGDATA=${PGDATA_FOLDER}
# This variable is automatically picked up by initdb and pg_ctl
# WARNING: If you change this, you have to change it in full-stack as well!
ENV PGDATA=/home/${NB_USER}/.postgresql

# Install RabbitMQ and PostgreSQL in a dedicated conda environment.
#
Expand Down
8 changes: 4 additions & 4 deletions stack/full-stack/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# syntax=docker/dockerfile:1
ARG PGDATA_FOLDER
FROM base-with-services as base
ARG PGDATA_FOLDER
ENV PGDATA=${PGDATA_FOLDER}

FROM lab

# WARNING: If you change this, you have to change it in base-with-services as well
ENV PGDATA="/home/${NB_USER}/.postgresql
USER root
COPY --from=base /opt/config-quick-setup.yaml /opt/
COPY --from=base "${CONDA_DIR}/envs/aiida-core-services" "${CONDA_DIR}/envs/aiida-core-services"
COPY --from=base /usr/local/bin/before-notebook.d /usr/local/bin/before-notebook.d
COPY --from=base ${PGDATA_FOLDER} ${PGDATA_FOLDER}
COPY --from=base ${PGDATA} ${PGDATA}
RUN fix-permissions "${CONDA_DIR}"
RUN fix-permissions "/home/${NB_USER}/.aiida"
Expand Down

0 comments on commit a2a64f3

Please sign in to comment.