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 2018/04/05 14:50:08 UTC

[GitHub] dgrove-oss closed pull request #178: reduce number of runtimes for docker-pull during TravisCI testing

dgrove-oss closed pull request #178: reduce number of runtimes for docker-pull during TravisCI testing 
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/178
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/kubernetes/cluster-setup/runtimes-minimal-travis.json b/kubernetes/cluster-setup/runtimes-minimal-travis.json
new file mode 100644
index 0000000..98ec32b
--- /dev/null
+++ b/kubernetes/cluster-setup/runtimes-minimal-travis.json
@@ -0,0 +1,28 @@
+{
+    "runtimes": {
+        "nodejs": [
+            {
+                "kind": "nodejs:6",
+                "default": true,
+                "image": {
+                    "name": "nodejs6action"
+                },
+                "deprecated": false
+            }
+        ],
+        "python": [
+            {
+                "kind": "python:3",
+                "image": {
+                    "name": "python3action"
+                },
+                "deprecated": false
+            }
+        ]
+    },
+    "blackboxes": [
+        {
+            "name": "dockerskeleton"
+        }
+    ]
+}
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
index fd14dba..fbd65e1 100755
--- a/tools/travis/build.sh
+++ b/tools/travis/build.sh
@@ -148,7 +148,12 @@ pushd kubernetes/cluster-setup
   kubectl apply -f namespace.yml
   kubectl apply -f services.yml
   kubectl -n openwhisk create cm whisk.config --from-env-file=config.env
-  kubectl -n openwhisk create cm whisk.runtimes --from-file=runtimes=runtimes.json
+  if [ "$TRAVIS" = "true" ]; then
+      # when running a CI job, skip pulling images we don't need to significantly reduce testing time.
+      kubectl -n openwhisk create cm whisk.runtimes --from-file=runtimes=runtimes-minimal-travis.json
+  else
+      kubectl -n openwhisk create cm whisk.runtimes --from-file=runtimes=runtimes.json
+  fi
   kubectl -n openwhisk create cm whisk.limits --from-env-file=limits.env
   kubectl -n openwhisk create secret generic whisk.auth --from-file=system=auth.whisk.system --from-file=guest=auth.guest
 popd


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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