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
546733e4
Commit
546733e4
authored
Mar 05, 2019
by
nabil el mahiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using except and npm login
parent
6deeac69
Pipeline
#319
failed with stages
in 4 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
docker/Dockerfile
+6
-3
sh/npm_login_expect.sh
+24
-0
No files found.
docker/Dockerfile
View file @
546733e4
...
...
@@ -38,13 +38,16 @@ WORKDIR /atlasvoyages
COPY
package*.json /atlasvoyages/
RUN
npm install
--global
grunt-cli
RUN
npm install
--global
grunt-cli
expect-dev
RUN
git config
--global
http.proxy
""
COPY
./ /atlasvoyages/
RUN
expect
-f
./sh/npm_login_expect nabilelmahiri arigatou@65
"nabil.elmahiri@fractalite.com"
# RUN echo "//<npm-registry>:8080/:_authToken=KB9DEBiM5vNeGPwinPuj" > ~/.npmrc
RUN
npm install
--save
--unsafe-perm
=
true
COPY
./ /atlasvoyages/
# RUN mongorestore --host localhost --port 27017 --gzip --archive=atlasvoyages-dev.archive
...
...
sh/npm_login_expect.sh
0 → 100644
View file @
546733e4
#!/usr/bin/expect -f
# set our args into variables
set
i 0
;
foreach n
$argv
{
set
"p[incr i]"
$n
}
set
timeout 60
#npm login command, add whatever command-line args are necessary
spawn npm login
match_max 100000
expect
"Username"
send
"
$p1
\r
"
expect
"Password"
send
"
$p2
\r
"
expect
"Email"
send
"
$p3
\r
"
expect
{
timeout
exit
1
eof
}
\ No newline at end of file
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