Commit 5bf1e2e2 by nabil el mahiri

using npm login

parent ae2cff99
Pipeline #391 failed with stages
in 2 minutes 15 seconds
...@@ -53,7 +53,7 @@ COPY package*.json /atlasvoyages/ ...@@ -53,7 +53,7 @@ COPY package*.json /atlasvoyages/
# RUN echo "//<npm-registry>:8080/:_authToken=KB9DEBiM5vNeGPwinPuj" > ~/.npmrc # RUN echo "//<npm-registry>:8080/:_authToken=KB9DEBiM5vNeGPwinPuj" > ~/.npmrc
# Take an SSH key as a build argument. # Take an SSH key as a build argument.
# ARG SSH_PRIVATE_KEY ARG SSH_PRIVATE_KEY
# RUN echo exit 0 > /usr/sbin/policy-rc.d # RUN echo exit 0 > /usr/sbin/policy-rc.d
...@@ -62,22 +62,15 @@ COPY package*.json /atlasvoyages/ ...@@ -62,22 +62,15 @@ COPY package*.json /atlasvoyages/
# 2. Populate the private key file. # 2. Populate the private key file.
# 3. Set the required permissions. # 3. Set the required permissions.
# 4. Add github to our list of known hosts for ssh. # 4. Add github to our list of known hosts for ssh.
RUN mkdir -p /root/.ssh/ && \ RUN mkdir ~/.ssh && \
echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa && \ echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa && \
chmod -R 600 /root/.ssh/ && \ chmod 0600 ~/.ssh/id_rsa && \
ssh-keyscan gitlab.com >> /root/.ssh/known_hosts && \ echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config && \
ssh-keyscan -t rsa labs.atlasvoyages.com >> ~/.ssh/known_hosts && \
cat /root/.ssh/id_rsa cat /root/.ssh/id_rsa
RUN git config --global user.email "nabil.elmahiri@fractalite.com" && \
git config --global user.name "arigatou@65"
RUN git clone http://192.168.168.174/pine/theme-atlasvoyages.git -b 0.3-beta-v1
# RUN git clone https://nabilelmahiri:arigatou%4065@labs.atlasvoyages.com/pine/theme-atlasvoyages.git -b 0.3-beta-v1
RUN ssh -T git@labs.atlasvoyages.com RUN ssh -T git@labs.atlasvoyages.com
# RUN git clone https://nabilelmahiri:arigatou%4065@labs.atlasvoyages.com/pine/theme-atlasvoyages.git -b 0.3-beta-v1
COPY ./ /atlasvoyages/ COPY ./ /atlasvoyages/
......
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