Commit 171ba82a authored by Peter Parente's avatar Peter Parente

Fix ssh key format

New Docker Hub UI loses newlines in the env
var settings. Loss of new lines leads ssh-add
to prompt and fail when loading the key.

Base64 encode and decode the key to workaround
the limitation.
parent 357e7583
...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md" ...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
# Configure git so it can push back to GitHub. # Configure git so it can push back to GitHub.
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add <(echo "$DEPLOY_KEY") ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
ssh-add -l ssh-add -l
git config --global user.email "jupyter@googlegroups.com" git config --global user.email "jupyter@googlegroups.com"
git config --global user.name "Jupyter Docker Stacks" git config --global user.name "Jupyter Docker Stacks"
......
...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md" ...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
# Configure git so it can push back to GitHub. # Configure git so it can push back to GitHub.
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add <(echo "$DEPLOY_KEY") ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
ssh-add -l ssh-add -l
git config --global user.email "jupyter@googlegroups.com" git config --global user.email "jupyter@googlegroups.com"
git config --global user.name "Jupyter Docker Stacks" git config --global user.name "Jupyter Docker Stacks"
......
...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md" ...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
# Configure git so it can push back to GitHub. # Configure git so it can push back to GitHub.
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add <(echo "$DEPLOY_KEY") ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
ssh-add -l ssh-add -l
git config --global user.email "jupyter@googlegroups.com" git config --global user.email "jupyter@googlegroups.com"
git config --global user.name "Jupyter Docker Stacks" git config --global user.name "Jupyter Docker Stacks"
......
...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md" ...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
# Configure git so it can push back to GitHub. # Configure git so it can push back to GitHub.
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add <(echo "$DEPLOY_KEY") ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
ssh-add -l ssh-add -l
git config --global user.email "jupyter@googlegroups.com" git config --global user.email "jupyter@googlegroups.com"
git config --global user.name "Jupyter Docker Stacks" git config --global user.name "Jupyter Docker Stacks"
......
...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md" ...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
# Configure git so it can push back to GitHub. # Configure git so it can push back to GitHub.
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add <(echo "$DEPLOY_KEY") ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
ssh-add -l ssh-add -l
git config --global user.email "jupyter@googlegroups.com" git config --global user.email "jupyter@googlegroups.com"
git config --global user.name "Jupyter Docker Stacks" git config --global user.name "Jupyter Docker Stacks"
......
...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md" ...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
# Configure git so it can push back to GitHub. # Configure git so it can push back to GitHub.
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add <(echo "$DEPLOY_KEY") ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
ssh-add -l ssh-add -l
git config --global user.email "jupyter@googlegroups.com" git config --global user.email "jupyter@googlegroups.com"
git config --global user.name "Jupyter Docker Stacks" git config --global user.name "Jupyter Docker Stacks"
......
...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md" ...@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
# Configure git so it can push back to GitHub. # Configure git so it can push back to GitHub.
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add <(echo "$DEPLOY_KEY") ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
ssh-add -l ssh-add -l
git config --global user.email "jupyter@googlegroups.com" git config --global user.email "jupyter@googlegroups.com"
git config --global user.name "Jupyter Docker Stacks" git config --global user.name "Jupyter Docker Stacks"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment