You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2018/04/05 14:50:11 UTC
[incubator-openwhisk-deploy-kube] branch master updated: reduce
number of runtimes for docker-pull during TravisCI testing (#178)
This is an automated email from the ASF dual-hosted git repository.
dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new 02cc71f reduce number of runtimes for docker-pull during TravisCI testing (#178)
02cc71f is described below
commit 02cc71f2c328738bb932b2188e6f50db83e23346
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Thu Apr 5 10:50:06 2018 -0400
reduce number of runtimes for docker-pull during TravisCI testing (#178)
pulling all the runtime docker images takes a significant fraction
of the overall testing time. Just pull the two runtime images
we actually need to execute our test cases to reduce test time.
---
.../cluster-setup/runtimes-minimal-travis.json | 28 ++++++++++++++++++++++
tools/travis/build.sh | 7 +++++-
2 files changed, 34 insertions(+), 1 deletion(-)
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
--
To stop receiving notification emails like this one, please contact
dgrove@apache.org.