@@ -26,28 +26,6 @@ RUN git clone -b umoci https://github.com/cyphar/go-mtree.git /tmp/gomtree
2626RUN cd /tmp/gomtree && \
2727 go install ./cmd/gomtree
2828
29- # # TOOLS: oci-runtime-tool needs special handling.
30- FROM golang:1.25 AS oci-runtime-tool
31- # FIXME: We need to get an ancient version of oci-runtime-tools because the
32- # config.json conversion we do is technically not spec-compliant due to
33- # an oversight and new versions of oci-runtime-tools verify this.
34- # See <https://github.com/opencontainers/runtime-spec/pull/1197>.
35- #
36- # In addition, there is no go.mod in all released versions up to v0.9.0,
37- # which means that we will pull the latest runtime-spec automatically
38- # (Go removed auto-conversion to go.mod in Go 1.22) which causes
39- # validation errors. But we need to forcefully pick runtime-spec v1.0.2.
40- # This is fine. See <https://github.com/opencontainers/runtime-tools/pull/774>.
41- ENV SRCDIR=/tmp/oci-runtime-tool
42- RUN git clone -b v0.5.0 https://github.com/opencontainers/runtime-tools.git $SRCDIR
43- RUN cd $SRCDIR && \
44- go mod init github.com/opencontainers/runtime-tools && \
45- go mod tidy && \
46- go get github.com/opencontainers/
[email protected] && \
47- go mod vendor
48- RUN make -C $SRCDIR tool
49- RUN install -Dm 0755 $SRCDIR/oci-runtime-tool /usr/bin/oci-runtime-tool
50-
5129# # CI: Pull the test image in a separate build stage.
5230FROM quay.io/skopeo/stable:v1.20 AS test-image
5331ENV SOURCE_IMAGE=/image SOURCE_TAG=latest
@@ -88,7 +66,6 @@ RUN git config --system --add safe.directory /go/src/github.com/opencontainers/u
8866
8967ENV GOPATH=/go PATH=/go/bin:$PATH
9068COPY --from=go-binaries /go/bin /go/bin
91- COPY --from=oci-runtime-tool /usr/bin/oci-runtime-tool /go/bin
9269ENV SOURCE_IMAGE=/image SOURCE_TAG=latest
9370COPY --from=test-image $SOURCE_IMAGE $SOURCE_IMAGE
9471
0 commit comments