Skip to content

Commit ce47ddf

Browse files
committed
add keychain for ssh stuff
1 parent d7f9643 commit ce47ddf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
FROM jupyter/datascience-notebook
22

3+
USER root
4+
RUN apt update \
5+
&& apt install keychain
6+
USER $NB_UID
7+
38
RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-361.0.0-linux-x86_64.tar.gz \
49
&& tar -zxvf google-cloud-sdk-361.0.0-linux-x86_64.tar.gz \
510
&& ./google-cloud-sdk/install.sh

_jupyterhub/custom.sh

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ parse_git_branch() {
22
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
33
}
44
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
5+
eval `keychain --eval --agents ssh id_ed25519`

0 commit comments

Comments
 (0)