zuul-quick-start: run docker-compose as regular user

To use the buildset registry we need the docker-compose command to
be executed as the zuul user, otherwise the auth configuration is
not set and the test pulls the images from docker.io.
This change also adds the --digests argument to docker image ls.

Change-Id: I62970cae4851b06ff79cdc953f90772c550000bd
This commit is contained in:
Tristan Cacqueray
2019-05-13 07:15:20 +00:00
parent ce127cc229
commit 41178c4aae

View File

@@ -3,14 +3,13 @@
shell:
cmd: docker-compose up -d
chdir: src/opendev.org/zuul/zuul/doc/source/admin/examples
become: true
- name: Run docker-compose up
when: local
shell:
cmd: docker-compose up -d
chdir: ../../doc/source/admin/examples
- name: Print list of images
command: docker image ls
command: docker image ls --all --digests --no-trunc
- name: Wait for Gerrit to start
wait_for:
host: localhost