From fc53b7672e3180989885652b24a9fcd96552544f Mon Sep 17 00:00:00 2001 From: nabilelmahiri <nabil.elmahiri@fractalite.com> Date: Wed, 6 Mar 2019 09:36:48 +0100 Subject: [PATCH] using npm login --- docker/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 0e3def8..d39c044 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -63,11 +63,12 @@ ARG SSH_PRIVATE_KEY # 3. Set the required permissions. # 4. Add github to our list of known hosts for ssh. RUN mkdir ~/.ssh && \ - echo "$SSH_PRIVATE_KEY" >> /root/.ssh/id_rsa && \ - chmod 0600 /root/.ssh/id_rsa && \ - echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile /root/.ssh/id_rsa" >> /root/.ssh/config && \ - ssh-keyscan -t rsa labs.atlasvoyages.com >> /root/.ssh/known_hosts && \ - cat /root/.ssh/known_hosts + echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa && \ + chmod 0600 ~/.ssh/id_rsa && \ + echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config && \ + ssh-keyscan labs.atlasvoyages.com >> ~/.ssh/known_hosts && \ + cat ~/.ssh/known_hosts && \ + cat ~/.ssh/id_rsa RUN ssh -T git@labs.atlasvoyages.com -- libgit2 0.26.0