-
Notifications
You must be signed in to change notification settings - Fork 785
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration tests: switch some base images
Replace some of the base images we've been using (particularly centos:8, which will EOL soon) with other images hosted on quay.io. We already use registries.conf at test-time to redirect some image references there, so this will slightly reduce the number of registries which we need to be able to reach while running these tests. Signed-off-by: Nalin Dahyabhai <[email protected]>
- Loading branch information
Showing
5 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM fedora as builder | ||
# "fedora" is replaced as the base image at test-time using the --from flag | ||
FROM fedora as builder | ||
FROM busybox | ||
COPY --from=builder /bin/df /tmp/df_tester | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
FROM ubuntu:latest | ||
FROM quay.io/fedora/fedora | ||
|
||
ENV MYUSER=myuser | ||
|
||
RUN useradd --create-home --home /"${MYUSER}" "${MYUSER}" | ||
COPY --chown="${MYUSER}" ./copychown.txt /somewhere | ||
|
||
RUN ls -alF /somewhere | ||
RUN stat -c "%U:%G" /somewhere |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM centos:8 | ||
FROM busybox | ||
ARG FOO=bar | ||
ARG WEBROOT=https://example.org/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
FROM fedora | ||
FROM quay.io/fedora/python-311 | ||
|
||
USER root | ||
WORKDIR / | ||
|
||
RUN <<EOF | ||
echo "print first line from heredoc" | ||
|