Browse Source

CI: use images from quay.io to prevent being throttled by docker hub (#8209)

* CI: use netchecker images from quay to prevent throttling

* Molecule: use hello-world image from quay.io
pull/8217/head
Cristian Calin 3 years ago
committed by GitHub
parent
commit
c74e1c9db3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 6 deletions
  1. 4
      roles/container-engine/docker/molecule/default/tests/test_default.py
  2. 2
      roles/container-engine/gvisor/molecule/default/files/container.json
  3. 2
      roles/container-engine/gvisor/molecule/default/tests/test_default.py
  4. 2
      roles/container-engine/kata-containers/molecule/default/files/container.json
  5. 2
      roles/container-engine/kata-containers/molecule/default/tests/test_default.py
  6. 3
      tests/common/_docker_hub_registry_mirror.yml

4
roles/container-engine/docker/molecule/default/tests/test_default.py

@ -14,6 +14,6 @@ def test_docker_service(host):
def test_docker_run(host):
with host.sudo():
cmd = host.command("docker run hello-world")
cmd = host.command("docker run quay.io/kubespray/hello-world:latest")
assert cmd.rc == 0
assert "Hello from Docker!" in cmd.stdout
assert "Hello from Docker" in cmd.stdout

2
roles/container-engine/gvisor/molecule/default/files/container.json

@ -3,7 +3,7 @@
"name": "gvisor1"
},
"image": {
"image": "docker.io/library/hello-world:latest"
"image": "quay.io/kubespray/hello-world:latest"
},
"log_path": "gvisor1.0.log",
"linux": {}

2
roles/container-engine/gvisor/molecule/default/tests/test_default.py

@ -26,4 +26,4 @@ def test_run_pod(host):
log_f = host.file("/tmp/gvisor1.0.log")
assert log_f.exists
assert b"Hello from Docker!" in log_f.content
assert b"Hello from Docker" in log_f.content

2
roles/container-engine/kata-containers/molecule/default/files/container.json

@ -3,7 +3,7 @@
"name": "kata1"
},
"image": {
"image": "docker.io/library/hello-world:latest"
"image": "quay.io/kubespray/hello-world:latest"
},
"log_path": "kata1.0.log",
"linux": {}

2
roles/container-engine/kata-containers/molecule/default/tests/test_default.py

@ -34,4 +34,4 @@ def test_run_pod(host):
log_f = host.file("/tmp/kata1.0.log")
assert log_f.exists
assert b"Hello from Docker!" in log_f.content
assert b"Hello from Docker" in log_f.content

3
tests/common/_docker_hub_registry_mirror.yml

@ -20,3 +20,6 @@ crio_registries_mirrors:
mirrors:
- location: mirror.gcr.io
insecure: false
netcheck_agent_image_repo: "{{ quay_image_repo }}/kubespray/k8s-netchecker-agent"
netcheck_server_image_repo: "{{ quay_image_repo }}/kubespray/k8s-netchecker-server"
Loading…
Cancel
Save