Skip to content

Commit

Permalink
added new git cred manager args (#652)
Browse files Browse the repository at this point in the history
* added new git cred manager args

* installing cgm

* update install of gcm

* adds gcm setting

* updated start-custom script for git cred manager

---------

Co-authored-by: Mathis Marcotte <[email protected]>
  • Loading branch information
mathis-marcotte and Mathis Marcotte authored Aug 1, 2024
1 parent 8dd641a commit 61cb267
Show file tree
Hide file tree
Showing 15 changed files with 103 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker-bits/4_CLI.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,12 @@ RUN \
&& chmod +x argo-linux-amd64 \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

ARG GIT_CRED_MANAGER_VERSION=2.5.1
ARG GIT_CRED_MANAGER_URL=https://github.com/git-ecosystem/git-credential-manager/releases/download/v${GIT_CRED_MANAGER_VERSION}/gcm-linux_amd64.${GIT_CRED_MANAGER_VERSION}.deb
ARG GIT_CRED_MANAGER_SHA=03c7b174a6f90e1ae860980ba5fda4490f04e5b9aaa802e2d469e72ec5dae6a4

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
5 changes: 5 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions output/jupyterlab-cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,15 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

ARG GIT_CRED_MANAGER_VERSION=2.5.1
ARG GIT_CRED_MANAGER_URL=https://github.com/git-ecosystem/git-credential-manager/releases/download/v${GIT_CRED_MANAGER_VERSION}/gcm-linux_amd64.${GIT_CRED_MANAGER_VERSION}.deb
ARG GIT_CRED_MANAGER_SHA=03c7b174a6f90e1ae860980ba5fda4490f04e5b9aaa802e2d469e72ec5dae6a4

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

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
5 changes: 5 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions output/jupyterlab-pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,15 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

ARG GIT_CRED_MANAGER_VERSION=2.5.1
ARG GIT_CRED_MANAGER_URL=https://github.com/git-ecosystem/git-credential-manager/releases/download/v${GIT_CRED_MANAGER_VERSION}/gcm-linux_amd64.${GIT_CRED_MANAGER_VERSION}.deb
ARG GIT_CRED_MANAGER_SHA=03c7b174a6f90e1ae860980ba5fda4490f04e5b9aaa802e2d469e72ec5dae6a4

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

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
5 changes: 5 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions output/jupyterlab-tensorflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,15 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

ARG GIT_CRED_MANAGER_VERSION=2.5.1
ARG GIT_CRED_MANAGER_URL=https://github.com/git-ecosystem/git-credential-manager/releases/download/v${GIT_CRED_MANAGER_VERSION}/gcm-linux_amd64.${GIT_CRED_MANAGER_VERSION}.deb
ARG GIT_CRED_MANAGER_SHA=03c7b174a6f90e1ae860980ba5fda4490f04e5b9aaa802e2d469e72ec5dae6a4

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

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
5 changes: 5 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions output/remote-desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

ARG GIT_CRED_MANAGER_VERSION=2.5.1
ARG GIT_CRED_MANAGER_URL=https://github.com/git-ecosystem/git-credential-manager/releases/download/v${GIT_CRED_MANAGER_VERSION}/gcm-linux_amd64.${GIT_CRED_MANAGER_VERSION}.deb
ARG GIT_CRED_MANAGER_SHA=03c7b174a6f90e1ae860980ba5fda4490f04e5b9aaa802e2d469e72ec5dae6a4

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

###############################
### docker-bits/6_remote-desktop.Dockerfile
###############################
Expand Down
5 changes: 5 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions output/rstudio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,15 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

ARG GIT_CRED_MANAGER_VERSION=2.5.1
ARG GIT_CRED_MANAGER_URL=https://github.com/git-ecosystem/git-credential-manager/releases/download/v${GIT_CRED_MANAGER_VERSION}/gcm-linux_amd64.${GIT_CRED_MANAGER_VERSION}.deb
ARG GIT_CRED_MANAGER_SHA=03c7b174a6f90e1ae860980ba5fda4490f04e5b9aaa802e2d469e72ec5dae6a4

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

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
5 changes: 5 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions output/sas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

ARG GIT_CRED_MANAGER_VERSION=2.5.1
ARG GIT_CRED_MANAGER_URL=https://github.com/git-ecosystem/git-credential-manager/releases/download/v${GIT_CRED_MANAGER_VERSION}/gcm-linux_amd64.${GIT_CRED_MANAGER_VERSION}.deb
ARG GIT_CRED_MANAGER_SHA=03c7b174a6f90e1ae860980ba5fda4490f04e5b9aaa802e2d469e72ec5dae6a4

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

###############################
### docker-bits/5_DB-Drivers.Dockerfile
###############################
Expand Down
5 changes: 5 additions & 0 deletions 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
5 changes: 5 additions & 0 deletions 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

0 comments on commit 61cb267

Please sign in to comment.