Browse Source

modified to cnpm; deliver.sh kill.sh

xiaoct 7 years ago
parent
commit
e2edb22abc
4 changed files with 5 additions and 2 deletions
  1. 3 0
      Dockerfile
  2. 2 2
      Jenkinsfile
  3. 0 0
      deliver.sh
  4. 0 0
      kill.sh

+ 3 - 0
Dockerfile

@@ -7,9 +7,12 @@
 FROM ubuntu
 # File Author / Maintainer
 # MAINTAINER name Chunteng Xiao
+ADD deliver.sh /home
+ADD kill.sh /home
 RUN apt-get update
 RUN apt-get install -y nodejs nginx npm
 RUN rm -v /etc/nginx/nginx.conf
+RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
 ADD nginx.conf /etc/nginx
 EXPOSE 80
 CMD service nginx start

+ 2 - 2
Jenkinsfile

@@ -14,9 +14,9 @@ pipeline {
         }
         stage('Deliver'){
             steps {
-                sh './jenkins/scripts/deliver.sh'
+                sh 'deliver.sh'
                 input message: 'Finished using the web site? (Click "Proceed" to continue)'
-                sh './jenkins/scripts/kill.sh'
+                sh 'kill.sh'
             }
         }
             

+ 0 - 0
Jenkins/scripts/deliver.sh → deliver.sh


+ 0 - 0
Jenkins/scripts/kill.sh → kill.sh