Merge "Add more robust testing of the registry"
This commit is contained in:
commit
3ce62dcc74
@ -20,7 +20,10 @@
|
|||||||
command: docker login localhost:9000 -u testuser -p testpass
|
command: docker login localhost:9000 -u testuser -p testpass
|
||||||
|
|
||||||
- name: Push the test image to the registry
|
- name: Push the test image to the registry
|
||||||
command: docker push localhost:9000/test/image
|
# Use a lot of concurrency to check registry with concurrent pushes
|
||||||
|
shell: printf "1\n2\n3\n4\n" | xargs -P 4 -I DNE docker push localhost:9000/test/image
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
|
||||||
- name: Remove the test image from the local cache
|
- name: Remove the test image from the local cache
|
||||||
command: docker rmi localhost:9000/test/image
|
command: docker rmi localhost:9000/test/image
|
||||||
|
@ -20,7 +20,10 @@
|
|||||||
command: podman login localhost:9000 -u testuser -p testpass
|
command: podman login localhost:9000 -u testuser -p testpass
|
||||||
|
|
||||||
- name: Push the test image to the registry
|
- name: Push the test image to the registry
|
||||||
command: podman push localhost:9000/test/image
|
# Use a lot of concurrency to check registry with concurrent pushes
|
||||||
|
shell: printf "1\n2\n3\n4\n" | xargs -P 4 -I DNE podman push localhost:9000/test/image
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
|
||||||
- name: Remove the test image from the local cache
|
- name: Remove the test image from the local cache
|
||||||
command: podman rmi localhost:9000/test/image
|
command: podman rmi localhost:9000/test/image
|
||||||
|
@ -21,7 +21,10 @@
|
|||||||
command: docker login localhost:9000 -u writeuser -p writepass
|
command: docker login localhost:9000 -u writeuser -p writepass
|
||||||
|
|
||||||
- name: Push the test image to the registry
|
- name: Push the test image to the registry
|
||||||
command: docker push localhost:9000/test/image
|
# Use a lot of concurrency to check registry with concurrent pushes
|
||||||
|
shell: printf "1\n2\n3\n4\n" | xargs -P 4 -I DNE docker push localhost:9000/test/image
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
|
||||||
- name: Remove the test image from the local cache
|
- name: Remove the test image from the local cache
|
||||||
command: docker rmi localhost:9000/test/image
|
command: docker rmi localhost:9000/test/image
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
- skopeo
|
- skopeo
|
||||||
- buildah
|
- buildah
|
||||||
- podman
|
- podman
|
||||||
|
- findutils
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
- name: Run setup tasks
|
- name: Run setup tasks
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
command: "cp /run/user/{{ ansible_user_uid }}/auth.json {{ workspace }}/containers-auth.json"
|
command: "cp /run/user/{{ ansible_user_uid }}/auth.json {{ workspace }}/containers-auth.json"
|
||||||
|
|
||||||
- name: Create a local containers image
|
- name: Create a local containers image
|
||||||
shell: buildah commit --rm $(buildah from scratch) testimage
|
shell: buildah commit --rm $(buildah from docker.io/zuul/zuul-registry) testimage
|
||||||
|
|
||||||
- name: Ensure image file is not present
|
- name: Ensure image file is not present
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user