Skip to content

Commit

Permalink
updated start up script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Marcotte committed Jul 31, 2024
1 parent 84aba4b commit 5eca781
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 29 deletions.
3 changes: 0 additions & 3 deletions docker-bits/4_CLI.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,3 @@ RUN wget -q "${GIT_CRED_MANAGER_URL}" -O ./gcm.deb \
&& echo "${GIT_CRED_MANAGER_SHA} ./gcm.deb" | sha256sum -c - \
&& dpkg -i ./gcm.deb \
&& rm ./gcm.deb

# Sets git credential manager to use gpg
ENV GCM_CREDENTIAL_STORE=gpg
8 changes: 7 additions & 1 deletion output/docker-stacks-datascience-notebook/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ else
sleep infinity
fi

# Step up Git Credential Manager
git config --global credential.credentialStore gpg
git config --global credential.helper manager
echo "export GPG_TTY=$(tty)" >> ~/.bashrc

# Clone example notebooks (with retries)
RETRIES_NO=5
RETRY_DELAY=3
Expand Down Expand Up @@ -196,7 +201,8 @@ EOF
fi

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

echo "$(tty)"
echo $(tty)
/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
--ip=0.0.0.0 \
--no-browser \
Expand Down
3 changes: 0 additions & 3 deletions output/jupyterlab-cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ RUN wget -q "${GIT_CRED_MANAGER_URL}" -O ./gcm.deb \
&& dpkg -i ./gcm.deb \
&& rm ./gcm.deb

# Sets git credential manager to use gpg
ENV GCM_CREDENTIAL_STORE=gpg

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
8 changes: 7 additions & 1 deletion output/jupyterlab-cpu/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ else
sleep infinity
fi

# Step up Git Credential Manager
git config --global credential.credentialStore gpg
git config --global credential.helper manager
echo "export GPG_TTY=$(tty)" >> ~/.bashrc

# Clone example notebooks (with retries)
RETRIES_NO=5
RETRY_DELAY=3
Expand Down Expand Up @@ -196,7 +201,8 @@ EOF
fi

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

echo "$(tty)"
echo $(tty)
/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
--ip=0.0.0.0 \
--no-browser \
Expand Down
3 changes: 0 additions & 3 deletions output/jupyterlab-pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ RUN wget -q "${GIT_CRED_MANAGER_URL}" -O ./gcm.deb \
&& dpkg -i ./gcm.deb \
&& rm ./gcm.deb

# Sets git credential manager to use gpg
ENV GCM_CREDENTIAL_STORE=gpg

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
8 changes: 7 additions & 1 deletion output/jupyterlab-pytorch/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ else
sleep infinity
fi

# Step up Git Credential Manager
git config --global credential.credentialStore gpg
git config --global credential.helper manager
echo "export GPG_TTY=$(tty)" >> ~/.bashrc

# Clone example notebooks (with retries)
RETRIES_NO=5
RETRY_DELAY=3
Expand Down Expand Up @@ -196,7 +201,8 @@ EOF
fi

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

echo "$(tty)"
echo $(tty)
/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
--ip=0.0.0.0 \
--no-browser \
Expand Down
3 changes: 0 additions & 3 deletions output/jupyterlab-tensorflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ RUN wget -q "${GIT_CRED_MANAGER_URL}" -O ./gcm.deb \
&& dpkg -i ./gcm.deb \
&& rm ./gcm.deb

# Sets git credential manager to use gpg
ENV GCM_CREDENTIAL_STORE=gpg

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
8 changes: 7 additions & 1 deletion output/jupyterlab-tensorflow/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ else
sleep infinity
fi

# Step up Git Credential Manager
git config --global credential.credentialStore gpg
git config --global credential.helper manager
echo "export GPG_TTY=$(tty)" >> ~/.bashrc

# Clone example notebooks (with retries)
RETRIES_NO=5
RETRY_DELAY=3
Expand Down Expand Up @@ -196,7 +201,8 @@ EOF
fi

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

echo "$(tty)"
echo $(tty)
/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
--ip=0.0.0.0 \
--no-browser \
Expand Down
3 changes: 0 additions & 3 deletions output/remote-desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ RUN wget -q "${GIT_CRED_MANAGER_URL}" -O ./gcm.deb \
&& dpkg -i ./gcm.deb \
&& rm ./gcm.deb

# Sets git credential manager to use gpg
ENV GCM_CREDENTIAL_STORE=gpg

###############################
### docker-bits/6_remote-desktop.Dockerfile
###############################
Expand Down
8 changes: 7 additions & 1 deletion output/remote-desktop/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ else
sleep infinity
fi

# Step up Git Credential Manager
git config --global credential.credentialStore gpg
git config --global credential.helper manager
echo "export GPG_TTY=$(tty)" >> ~/.bashrc

# Clone example notebooks (with retries)
RETRIES_NO=5
RETRY_DELAY=3
Expand Down Expand Up @@ -196,7 +201,8 @@ EOF
fi

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

echo "$(tty)"
echo $(tty)
/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
--ip=0.0.0.0 \
--no-browser \
Expand Down
3 changes: 0 additions & 3 deletions output/rstudio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ RUN wget -q "${GIT_CRED_MANAGER_URL}" -O ./gcm.deb \
&& dpkg -i ./gcm.deb \
&& rm ./gcm.deb

# Sets git credential manager to use gpg
ENV GCM_CREDENTIAL_STORE=gpg

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
8 changes: 7 additions & 1 deletion output/rstudio/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ else
sleep infinity
fi

# Step up Git Credential Manager
git config --global credential.credentialStore gpg
git config --global credential.helper manager
echo "export GPG_TTY=$(tty)" >> ~/.bashrc

# Clone example notebooks (with retries)
RETRIES_NO=5
RETRY_DELAY=3
Expand Down Expand Up @@ -196,7 +201,8 @@ EOF
fi

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

echo "$(tty)"
echo $(tty)
/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
--ip=0.0.0.0 \
--no-browser \
Expand Down
3 changes: 0 additions & 3 deletions output/sas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ RUN wget -q "${GIT_CRED_MANAGER_URL}" -O ./gcm.deb \
&& dpkg -i ./gcm.deb \
&& rm ./gcm.deb

# Sets git credential manager to use gpg
ENV GCM_CREDENTIAL_STORE=gpg

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
8 changes: 7 additions & 1 deletion output/sas/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ else
sleep infinity
fi

# Step up Git Credential Manager
git config --global credential.credentialStore gpg
git config --global credential.helper manager
echo "export GPG_TTY=$(tty)" >> ~/.bashrc

# Clone example notebooks (with retries)
RETRIES_NO=5
RETRY_DELAY=3
Expand Down Expand Up @@ -196,7 +201,8 @@ EOF
fi

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

echo "$(tty)"
echo $(tty)
/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
--ip=0.0.0.0 \
--no-browser \
Expand Down
8 changes: 7 additions & 1 deletion resources/common/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ else
sleep infinity
fi

# Step up Git Credential Manager
git config --global credential.credentialStore gpg
git config --global credential.helper manager
echo "export GPG_TTY=$(tty)" >> ~/.bashrc

# Clone example notebooks (with retries)
RETRIES_NO=5
RETRY_DELAY=3
Expand Down Expand Up @@ -196,7 +201,8 @@ EOF
fi

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

echo "$(tty)"
echo $(tty)
/opt/conda/bin/jupyter server --notebook-dir=/home/${NB_USER} \
--ip=0.0.0.0 \
--no-browser \
Expand Down

0 comments on commit 5eca781

Please sign in to comment.