diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-08 23:27:50 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-09 00:09:29 +0200 |
commit | e702348e6aed0b2187ffde36e4ae8e28e066239e (patch) | |
tree | 9ba1b1a7fd54ee51c2ffd9495f44a96c1dd8b9de | |
parent | ee4a9dde4fe0aefc10e35ccc8c232ae87efcc892 (diff) |
Add helper to download all images
It eases offline testing.
The default command leverages kind as in-use in Functest.
Change-Id: I66a20ede5e857f80cf49b9b708843034bc3b9904
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 6d0b76bf364581b23e06f342d2d78c574a164512)
-rw-r--r-- | functest_kubernetes/ci/download_images.sh | 70 | ||||
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | tox.ini | 1 |
3 files changed, 73 insertions, 0 deletions
diff --git a/functest_kubernetes/ci/download_images.sh b/functest_kubernetes/ci/download_images.sh new file mode 100644 index 00000000..f3789b0a --- /dev/null +++ b/functest_kubernetes/ci/download_images.sh @@ -0,0 +1,70 @@ +#!/bin/bash + +set -e + +tmpfile=$(mktemp) +cat << EOF > $tmpfile +docker.io/aquasec/kube-bench:0.3.1 +docker.io/aquasec/kube-hunter:0.3.1 +docker.io/gluster/glusterdynamic-provisioner:v1.0 +docker.io/library/busybox:1.28 +docker.io/library/busybox:1.29 +docker.io/library/httpd:2.4.38-alpine +docker.io/library/httpd:2.4.39-alpine +docker.io/library/nginx:1.14-alpine +docker.io/library/nginx:1.15-alpine +docker.io/library/perl:5.26 +docker.io/library/redis:5.0.5-alpine +docker.io/ollivier/clearwater-astaire:hunter +docker.io/ollivier/clearwater-bono:hunter +docker.io/ollivier/clearwater-cassandra:hunter +docker.io/ollivier/clearwater-chronos:hunter +docker.io/ollivier/clearwater-ellis:hunter +docker.io/ollivier/clearwater-homer:hunter +docker.io/ollivier/clearwater-homestead:hunter +docker.io/ollivier/clearwater-homestead-prov:hunter +docker.io/ollivier/clearwater-live-test:hunter +docker.io/ollivier/clearwater-ralf:hunter +docker.io/ollivier/clearwater-sprout:hunter +gcr.io/google-containers/startup-script:v1 +gcr.io/google-samples/hello-go-gke:1.0 +gcr.io/kubernetes-e2e-test-images/agnhost:2.8 +gcr.io/kubernetes-e2e-test-images/apparmor-loader:1.0 +gcr.io/kubernetes-e2e-test-images/cuda-vector-add:1.0 +gcr.io/kubernetes-e2e-test-images/cuda-vector-add:2.0 +gcr.io/kubernetes-e2e-test-images/dnsutils:1.1 +gcr.io/kubernetes-e2e-test-images/echoserver:2.2 +gcr.io/kubernetes-e2e-test-images/ipc-utils:1.0 +gcr.io/kubernetes-e2e-test-images/jessie-dnsutils:1.0 +gcr.io/kubernetes-e2e-test-images/kitten:1.0 +gcr.io/kubernetes-e2e-test-images/metadata-concealment:1.2 +gcr.io/kubernetes-e2e-test-images/mounttest:1.0 +gcr.io/kubernetes-e2e-test-images/mounttest-user:1.0 +gcr.io/kubernetes-e2e-test-images/nautilus:1.0 +gcr.io/kubernetes-e2e-test-images/nonewprivs:1.0 +gcr.io/kubernetes-e2e-test-images/nonroot:1.0 +gcr.io/kubernetes-e2e-test-images/regression-issue-74839-amd64:1.0 +gcr.io/kubernetes-e2e-test-images/resource-consumer:1.5 +gcr.io/kubernetes-e2e-test-images/resource-consumer-controller:1.0 +gcr.io/kubernetes-e2e-test-images/sample-apiserver:1.10 +gcr.io/kubernetes-e2e-test-images/test-webserver:1.0 +gcr.io/kubernetes-e2e-test-images/volume/gluster:1.0 +gcr.io/kubernetes-e2e-test-images/volume/iscsi:2.0 +gcr.io/kubernetes-e2e-test-images/volume/nfs:1.0 +gcr.io/kubernetes-e2e-test-images/volume/rbd:1.0.1 +k8s.gcr.io/conformance:v1.17.5 +k8s.gcr.io/etcd:3.4.3 +k8s.gcr.io/pause:3.1 +k8s.gcr.io/pause:3.3 +k8s.gcr.io/prometheus-dummy-exporter:v0.1.0 +k8s.gcr.io/prometheus-to-sd:v0.5.0 +k8s.gcr.io/sd-dummy-exporter:v0.2.0 +quay.io/kubernetes_incubator/nfs-provisioner:v2.2.2 +EOF +for i in $(cat $tmpfile); do + sudo docker pull $i + # https://kind.sigs.k8s.io/docs/user/quick-start/ + # Be free to use docker save && kind load image-archive + kind load docker-image $i --name latest +done +rm -f $tmpfile @@ -5,6 +5,8 @@ home-page = https://wiki.opnfv.org/display/functest [files] packages = functest_kubernetes +scripts = + functest_kubernetes/ci/download_images.sh [entry_points] xtesting.testcase = @@ -50,6 +50,7 @@ commands = nosetests functest_kubernetes basepython = python3.7 files = build.sh + functest_kubernetes/ci/download_images.sh commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files} [testenv:perm] |