Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlasvoayages.com
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nabil el mahiri
atlasvoayages.com
Commits
d8a525a7
Commit
d8a525a7
authored
6 years ago
by
nabil el mahiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using npm login
parent
af927b35
Pipeline
#363
failed with stages
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
docker/Dockerfile
+10
-9
No files found.
docker/Dockerfile
View file @
d8a525a7
...
...
@@ -52,7 +52,7 @@ COPY package*.json /atlasvoyages/
# RUN echo "//<npm-registry>:8080/:_authToken=KB9DEBiM5vNeGPwinPuj" > ~/.npmrc
# 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
...
...
@@ -61,18 +61,19 @@ ARG SSH_PRIVATE_KEY
# 2. Populate the private key file.
# 3. Set the required permissions.
# 4. Add github to our list of known hosts for ssh.
RUN
mkdir
-p
/root/.ssh/
&&
\
echo
"
$SSH_PRIVATE_KEY
"
>
/root/.ssh/id_rsa
&&
\
chmod -R 600 /root/.ssh/ && \
ssh-keyscan labs.atlasvoyages.com >> /root/.ssh/known_hosts && \
cat /root/.ssh/id_rsa && \
ssh -T git@labs.atlasvoyages.com
#
RUN mkdir -p /root/.ssh/ && \
#
echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa && \
#
chmod -R 600 /root/.ssh/ && \
#
ssh-keyscan labs.atlasvoyages.com >> /root/.ssh/known_hosts && \
#
cat /root/.ssh/id_rsa && \
#
ssh -T git@labs.atlasvoyages.com
# RUN git clone git@labs.atlasvoyages.com:pine/theme-atlasvoyages.git -b 0.3-beta-v1
# RUN expect -f ./sh/npm_login_expect nabilelmahiri arigatou@65 "nabil.elmahiri@fractalite.com" && npm i -S git+http://nabilelmahiri@labs.atlasvoyages.com/pine/pine-express.git#0.3-dev
COPY
./ /atlasvoyages/
RUN
expect
-f
./sh/npm_login_expect nabilelmahiri arigatou@65
"nabil.elmahiri@fractalite.com"
&&
npm i
-S
git+http://nabilelmahiri@labs.atlasvoyages.com/pine/pine-express.git#0.3-dev
# RUN mongorestore --host localhost --port 27017 --gzip --archive=atlasvoyages-dev.archive
RUN
find ./node_modules
-maxdepth
1
-name
'pine*'
-type
d
\(
!
-name
.
\)
-exec
bash
-c
"cd '{}' && npm i --unsafe-perm=true && grunt build:dist"
\;
\
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment