Skip to content

Commit

Permalink
moved mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Marcotte committed Jun 20, 2024
1 parent f79ca29 commit 5236b70
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
10 changes: 1 addition & 9 deletions docker-bits/0_cpu_sas.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,4 @@ RUN apt-get update --yes \
#TODO: Evaluate if this is still necessary when updating the base image
RUN pip install --force-reinstall cryptography==39.0.1 && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

#Setup user's workspace
USER $NB_USER
RUN mkdir -p /home/jovyan/workspace \
&& mkdir -p /home/jovyan/workspace/data \
&& mkdir /home/jovyan/workspace/repositories

USER root
fix-permissions /home/$NB_USER
8 changes: 8 additions & 0 deletions docker-bits/6_sas.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN ln -s /usr/local/SASHome/SASFoundation/9.4/bin/sas_en /usr/local/bin/sas && \
chmod -R 0775 /usr/local/SASHome/studioconfig

#Setup user's workspace
USER $NB_USER
RUN mkdir -p /home/jovyan/workspace \
&& mkdir -p /home/jovyan/workspace/data \
&& mkdir /home/jovyan/workspace/repositories

USER root

WORKDIR /home/jovyan/workspace

ENV PATH=$PATH:/usr/local/SASHome/SASFoundation/9.4/bin
Expand Down
16 changes: 8 additions & 8 deletions output/sas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ RUN pip install --force-reinstall cryptography==39.0.1 && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

#Setup user's workspace
USER $NB_USER
RUN mkdir -p /home/jovyan/workspace \
&& mkdir -p /home/jovyan/workspace/data \
&& mkdir /home/jovyan/workspace/repositories

USER root

###############################
### docker-bits/3_Kubeflow.Dockerfile
###############################
Expand Down Expand Up @@ -419,6 +411,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN ln -s /usr/local/SASHome/SASFoundation/9.4/bin/sas_en /usr/local/bin/sas && \
chmod -R 0775 /usr/local/SASHome/studioconfig

#Setup user's workspace
USER $NB_USER
RUN mkdir -p /home/jovyan/workspace \
&& mkdir -p /home/jovyan/workspace/data \
&& mkdir /home/jovyan/workspace/repositories

USER root

WORKDIR /home/jovyan/workspace

ENV PATH=$PATH:/usr/local/SASHome/SASFoundation/9.4/bin
Expand Down

0 comments on commit 5236b70

Please sign in to comment.