Commit 546733e4 by nabil el mahiri

using except and npm login

parent 6deeac69
Pipeline #319 failed with stages
in 4 seconds
......@@ -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
......
#!/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
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