Skip to content

Commit

Permalink
test commit 3
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdallaAbdelhadi committed Dec 29, 2024
1 parent 827c44e commit 70320c0
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 42 deletions.
6 changes: 0 additions & 6 deletions docker-bits/∞_CMD.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ COPY .Rprofile /tmp/.Rprofile
# Copy over Instructions to Home directory
ADD connect-to-filer.md /home/$NB_USER/connect-to-filer.md

RUN if [ -d "/home/jovyan/.gnupg" ]; then \
chmod 700 /home/jovyan/.gnupg; \
fi

RUN mkdir /home/jovyan/test

# Point conda to Artifactory repository
RUN conda config --remove channels conda-forge --system

Expand Down
6 changes: 0 additions & 6 deletions output/docker-stacks-datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ COPY .Rprofile /tmp/.Rprofile
# Copy over Instructions to Home directory
ADD connect-to-filer.md /home/$NB_USER/connect-to-filer.md

RUN if [ -d "/home/jovyan/.gnupg" ]; then \
chmod 700 /home/jovyan/.gnupg; \
fi

RUN mkdir /home/jovyan/test

# Point conda to Artifactory repository
RUN conda config --remove channels conda-forge --system

Expand Down
6 changes: 0 additions & 6 deletions output/jupyterlab-cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -588,12 +588,6 @@ COPY .Rprofile /tmp/.Rprofile
# Copy over Instructions to Home directory
ADD connect-to-filer.md /home/$NB_USER/connect-to-filer.md

RUN if [ -d "/home/jovyan/.gnupg" ]; then \
chmod 700 /home/jovyan/.gnupg; \
fi

RUN mkdir /home/jovyan/test

# Point conda to Artifactory repository
RUN conda config --remove channels conda-forge --system

Expand Down
18 changes: 18 additions & 0 deletions output/jupyterlab-cpu/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,24 @@ local({
EOF
fi

# Check if the directory exists
if [ ! -d /home/$NB_USER/test ]; then
# Directory does not exist, create it
mkdir -p /home/$NB_USER/test
echo "Directory test created."
else
echo "Directory test already exists."
fi

DIR="/home/$NB_USER/.gnupg"

if [ -d "$DIR" ]; then
chmod 700 "$DIR"
echo "Permissions for $DIR set to 700."
else
echo "Directory $DIR does not exist."
fi

echo "--------------------starting jupyter--------------------"

/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
Expand Down
6 changes: 0 additions & 6 deletions output/jupyterlab-pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,6 @@ COPY .Rprofile /tmp/.Rprofile
# Copy over Instructions to Home directory
ADD connect-to-filer.md /home/$NB_USER/connect-to-filer.md

RUN if [ -d "/home/jovyan/.gnupg" ]; then \
chmod 700 /home/jovyan/.gnupg; \
fi

RUN mkdir /home/jovyan/test

# Point conda to Artifactory repository
RUN conda config --remove channels conda-forge --system

Expand Down
6 changes: 0 additions & 6 deletions output/jupyterlab-tensorflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -717,12 +717,6 @@ COPY .Rprofile /tmp/.Rprofile
# Copy over Instructions to Home directory
ADD connect-to-filer.md /home/$NB_USER/connect-to-filer.md

RUN if [ -d "/home/jovyan/.gnupg" ]; then \
chmod 700 /home/jovyan/.gnupg; \
fi

RUN mkdir /home/jovyan/test

# Point conda to Artifactory repository
RUN conda config --remove channels conda-forge --system

Expand Down
6 changes: 0 additions & 6 deletions output/rstudio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,6 @@ COPY .Rprofile /tmp/.Rprofile
# Copy over Instructions to Home directory
ADD connect-to-filer.md /home/$NB_USER/connect-to-filer.md

RUN if [ -d "/home/jovyan/.gnupg" ]; then \
chmod 700 /home/jovyan/.gnupg; \
fi

RUN mkdir /home/jovyan/test

# Point conda to Artifactory repository
RUN conda config --remove channels conda-forge --system

Expand Down
6 changes: 0 additions & 6 deletions output/sas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,6 @@ COPY .Rprofile /tmp/.Rprofile
# Copy over Instructions to Home directory
ADD connect-to-filer.md /home/$NB_USER/connect-to-filer.md

RUN if [ -d "/home/jovyan/.gnupg" ]; then \
chmod 700 /home/jovyan/.gnupg; \
fi

RUN mkdir /home/jovyan/test

# Point conda to Artifactory repository
RUN conda config --remove channels conda-forge --system

Expand Down

0 comments on commit 70320c0

Please sign in to comment.