mirror of
https://github.com/containers/buildah.git
synced 2026-02-05 09:45:38 +01:00
Make tests pass when using a local cache registry (as triggered by $CI_USE_REGISTRY_CACHE being non-empty). Mostly just change images: consolidate to a smaller set, like, replace the few instances of debian with ubuntu, use $SAFEIMAGE where we can. The most significant change was with some s1 (schema 1?) images. Those exist on quay, but cannot be mirrored locally: the local registry forbids schema 1 images. I choose to skip these tests when running against a local registry. Second most significant change is running containerized tests with --net=host. We need this to access the registry running on a localhost port. (One alternative would be to bind the registry on all interfaces, cringe, then perform sed magic on the registries-cache.conf file changing 127.0.0.1 to host.containers.internal, more cringe). Also, some cleanup. Signed-off-by: Ed Santiago <santiago@redhat.com>
9 lines
176 B
Docker
9 lines
176 B
Docker
ARG SAFEIMAGE
|
|
FROM $SAFEIMAGE
|
|
|
|
ENV MYUSER=myuser
|
|
RUN adduser -D -h /"${MYUSER}" "${MYUSER}"
|
|
COPY --chown="${MYUSER}" ./copychown.txt /somewhere
|
|
|
|
RUN stat -c "%U:%G" /somewhere
|