You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/03/19 21:11:36 UTC

[GitHub] [incubator-openwhisk] houshengbo commented on a change in pull request #4356: Add the private docker registry for three VMs under Apache

houshengbo commented on a change in pull request #4356: Add the private docker registry for three VMs under Apache
URL: https://github.com/apache/incubator-openwhisk/pull/4356#discussion_r267099148
 
 

 ##########
 File path: tools/jenkins/Jenkinsfile
 ##########
 @@ -17,38 +17,33 @@
  */
 
 timeout(time: 4, unit: 'HOURS') {
-
-    node("openwhisk2") {
+    node("openwhisk1") {
         deleteDir()
-        stage ('Checkout and build on OpenWhisk2') {
+        stage ('Checkout') {
             checkout([$class: 'GitSCM', branches: [[name: '${Branch}']], doGenerateSubmoduleConfigurations: false,
                       extensions: [], submoduleCfg: [],
                       userRemoteConfigs: [[credentialsId: '', url: 'https://github.com/${Fork}/${RepoName}']]])
-            sh './gradlew :core:invoker:distDocker'
         }
-    }
-
-    node("openwhisk3") {
-        deleteDir()
-        stage ('Checkout and build on OpenWhisk3') {
-            checkout([$class: 'GitSCM', branches: [[name: '${Branch}']], doGenerateSubmoduleConfigurations: false,
-                     extensions: [], submoduleCfg: [],
-                     userRemoteConfigs: [[credentialsId: '', url: 'https://github.com/${Fork}/${RepoName}']]])
-            sh './gradlew :core:invoker:distDocker'
-       }
-    }
 
-    node("openwhisk1") {
-        deleteDir()
-        stage ('Checkout and build on OpenWhisk1') {
-            checkout([$class: 'GitSCM', branches: [[name: '${Branch}']], doGenerateSubmoduleConfigurations: false,
-                      extensions: [], submoduleCfg: [],
-                      userRemoteConfigs: [[credentialsId: '', url: 'https://github.com/${Fork}/${RepoName}']]])
+        stage ('Build') {
+            // Set up a private docker registry service, accessed by all the OpenWhisk VMs.
+            sh 'docker container stop registry && docker container rm -v registry'
+            sh 'docker run -d --restart=always --name registry -v "$HOME"/certs:/certs \
+                -e REGISTRY_HTTP_ADDR=0.0.0.0:444 -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
+                -e REGISTRY_HTTP_TLS_KEY=/certs/domain.key -p 444:444 registry:2'
+            // Build the controller and invoker images.
             sh './gradlew distDocker'
 
 Review comment:
   Done. Thx.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services