openwhisk-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-openwhisk] neerajmangal commented on a change in pull request #4356: Add the private docker registry for three VMs under Apache
Date Tue, 19 Mar 2019 02:38:56 GMT
neerajmangal 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_r266710976
 
 

 ##########
 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:
   Instead of tag and push individually, gradle script accepts dockerRegistry as a parameter.
We can use below
   
   ```suggestion
               sh './gradlew distDocker -PdockerRegistry=openwhisk-vm1-he-de.apache.org:444'
   ```

----------------------------------------------------------------
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

Mime
View raw message