-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5641 from nalind/update-imagebuilder-v1.2.12
Update github.com/openshift/imagebuilder to v1.2.14
- Loading branch information
Showing
21 changed files
with
521 additions
and
160 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
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
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,6 +1,7 @@ | ||
FROM alpine as build | ||
ARG CUSTOM_TARGET | ||
|
||
FROM alpine as build | ||
|
||
FROM build AS platform-first | ||
ENV BUILT_FOR=first | ||
|
||
|
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,10 @@ | ||
# A base image that is known to be a manifest list. | ||
FROM docker.io/library/alpine | ||
COPY Dockerfile.no-run /root/ | ||
# A different base image that is known to be a manifest list, supporting a | ||
# different but partially-overlapping set of platforms. | ||
ARG SAFEIMAGE | ||
|
||
# A base image that is known to be a manifest list. | ||
FROM docker.io/library/alpine | ||
COPY Dockerfile.no-run /root/ | ||
|
||
FROM $SAFEIMAGE | ||
COPY --from=0 /root/Dockerfile.no-run /root/ |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ARG ALPINE | ||
|
||
FROM busybox | ||
RUN echo TARGETPLATFORM=$TARGETPLATFORM | tee 0.txt | ||
ARG TARGETPLATFORM | ||
RUN echo TARGETPLATFORM=$TARGETPLATFORM | tee -a 0.txt | ||
RUN touch -d @0 0.txt | ||
|
||
FROM ${SECONDBASE:-busybox} | ||
COPY --from=0 /*.txt / | ||
COPY --chown=${OWNERID:-1}:${OWNERID:-1} ${SOURCE:-other}file.txt /1a.txt | ||
ARG OWNERID=1 | ||
ARG SOURCE= | ||
COPY --chown=${OWNERID:-1}:${OWNERID:-1} ${SOURCE:-other}file.txt /1b.txt | ||
|
||
FROM ${ALPINE:-busybox} | ||
ARG SECONDBASE=localhost/no-such-image | ||
COPY --from=1 /*.txt / | ||
RUN cp -p /etc/nsswitch.conf /2.txt | ||
|
||
FROM ${BUSYBOX:-alpine} | ||
COPY --from=2 /*.txt / | ||
RUN cp -p /etc/nsswitch.conf /3.txt |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
other |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
source |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# if TARGETARCH is defined, we'l pull the x86_64 image | ||
FROM registry.fedoraproject.org/fedora-minimal:41${TARGETARCH:+-x86_64} AS amd64 | ||
# if TARGETARCH is defined, we'l pull the aarch64 image | ||
FROM registry.fedoraproject.org/fedora-minimal:41${TARGETARCH:+-aarch64} AS arm64 | ||
|
||
# run "file" against both shared libraries | ||
FROM registry.fedoraproject.org/fedora-minimal AS native | ||
COPY --from=amd64 /lib64/libc.so.6 /libc-amd64 | ||
COPY --from=arm64 /lib64/libc.so.6 /libc-arm64 | ||
RUN microdnf -y install file && microdnf -y clean all | ||
RUN file /libc-* | tee /libc-types.txt && touch -d @0 /libc-types.txt | ||
|
||
# expect them to have different target architectures listed in their ELF headers | ||
FROM registry.fedoraproject.org/fedora-minimal | ||
COPY --from=native /libc-types.txt / |
Oops, something went wrong.