Skip to content

Commit

Permalink
remove local postgres dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianhao-Gu committed Sep 19, 2024
1 parent 081437b commit 6d8a032
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ ENV JUPYTERHUB_SECRETS_DIR=/jupyterhub_secrets
RUN mkdir -p ${JUPYTERHUB_SECRETS_DIR}
RUN chown -R spark_user:spark ${JUPYTERHUB_SECRETS_DIR}

# Set a directory for hosting postgres db data - used by Spark to store Delta tables
ENV JUPYTERHUB_POSTGRES_DIR=/cdm-postgres
RUN mkdir -p ${JUPYTERHUB_POSTGRES_DIR}
RUN chown -R spark_user:spark ${JUPYTERHUB_POSTGRES_DIR}

# Allow spark_user to use sudo without a password
# TODO: use `sudospawner` in JupyterHub to avoid this (https://jupyterhub.readthedocs.io/en/stable/howto/configuration/config-sudo.html)
RUN echo "spark_user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
Expand Down

0 comments on commit 6d8a032

Please sign in to comment.