Skip to content

Commit ee44d6c

Browse files
Merge pull request #793 from grokspawn/xplat-tools-fix
[release-4.16] OCPBUGS-25019: fix xplat compile for of-tools image; hide utest files from git; use rhel8 art builder image
2 parents f0be27d + 6e9c9e8 commit ee44d6c

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,3 +468,6 @@ scripts/**/*.crc.e2e.patch.yaml
468468

469469
# downstream sync sha files
470470
*.cherrypick
471+
472+
# unit test artifacts
473+
vendor/github.com/operator-framework/operator-registry/pkg/lib/indexer/index.Dockerfile*

operator-framework-tools.Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ WORKDIR /src
1212
COPY . .
1313
RUN make build/registry cross
1414

15-
FROM scratch
15+
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9
16+
ENTRYPOINT ["sh", "-c", "echo 'Running this image is not supported' && exit 1"]
17+
# clear any default CMD
18+
CMD []
1619

20+
# copy a rhel-specific instance
1721
COPY --from=builder /src/bin/opm /tools/opm-rhel9
18-
COPY --from=builder /src/bin/darwin-amd64-opm /tools/darwin-amd64-opm
19-
COPY --from=builder /src/bin/windows-amd64-opm /tools/windows-amd64-opm
22+
# copy all other generated binaries, including any cross-compiled
23+
COPY --from=builder /src/bin/*opm /tools/
2024

2125
# copy the dynamically-linked versions to /tools with a -rhel8 suffix
2226
COPY --from=builder-rhel8 /src/bin/opm /tools/opm-rhel8
@@ -25,4 +29,6 @@ USER 1001
2529

2630
LABEL io.k8s.display-name="OpenShift Operator Framework Tools" \
2731
io.k8s.description="This is a non-runnable image containing binary builds of various Operator Framework tools, primarily used to publish binaries to the OpenShift mirror." \
28-
maintainer="Odin Team <[email protected]>"
32+
maintainer="Odin Team <[email protected]>" \
33+
# We're not really an operator, we're just getting some data into the release image.
34+
io.openshift.release.operator=true

0 commit comments

Comments
 (0)