
The docker toolchain is a bit of a walled garden and speculative image builds work great by default as long as docker.io is your image registry. As soon as you start trying to host images elsewhere it becomes a lot more complicated to use speculatively built images during docker image builds. Update our existing registry role test jobs to use images hosted somewhere other than docker.io to force us onto the less happy code path, then verify that we are able to build images from speculative states using docker. This should give us decent coverage that everything works as expected. Change-Id: I4801f98a0ef1aab01b4bc3b6e6576800efacbac4
12 lines
464 B
Docker
12 lines
464 B
Docker
FROM quay.io/opendevorg/imagedoesnotexist as first
|
|
ARG ZUUL_SIBLINGS=""
|
|
RUN echo "Zuul siblings: ${ZUUL_SIBLINGS}"
|
|
RUN cp /test-nonce /test-nonce-is-there
|
|
COPY . /tmp/src
|
|
RUN cp -a /tmp/src/.zuul-siblings/opendev.org/project/fake-sibling/file /target
|
|
RUN cp -a /tmp/src/.zuul-siblings/openstack.org/project/fake-sibling/file /target
|
|
CMD echo "Zuul container test"; sleep infinity
|
|
|
|
FROM first as second
|
|
RUN echo "This is just to test that loops with siblings work"
|