From 6d8a03295281920d7308705b9c8d8c42ddecd076 Mon Sep 17 00:00:00 2001 From: Tianhao-Gu Date: Thu, 19 Sep 2024 12:49:48 -0500 Subject: [PATCH] remove local postgres dir --- Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6954b92..c9ded25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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