Skip to content

Commit ece3f19

Browse files
authored
Merge pull request containerd#4393 from Shubhranshu153/fix-soci-test
fix: allow soci v1 pulls for existing tests
2 parents 02cfb57 + 71a1d7b commit ece3f19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ COPY --from=ghcr.io/sigstore/cosign/cosign:v2.2.3@sha256:8fc9cad121611e8479f65f7
329329
ARG SOCI_SNAPSHOTTER_VERSION
330330
RUN fname="soci-snapshotter-${SOCI_SNAPSHOTTER_VERSION}-${TARGETOS:-linux}-${TARGETARCH:-amd64}.tar.gz" && \
331331
curl -o "${fname}" -fsSL --proto '=https' --tlsv1.2 "https://github.com/awslabs/soci-snapshotter/releases/download/v${SOCI_SNAPSHOTTER_VERSION}/${fname}" && \
332-
tar -C /usr/local/bin -xvf "${fname}" soci soci-snapshotter-grpc
332+
tar -C /usr/local/bin -xvf "${fname}" soci soci-snapshotter-grpc && \
333+
mkdir -p /etc/soci-snapshotter-grpc && \
334+
touch /etc/soci-snapshotter-grpc/config.toml && \
335+
echo "\n[pull_modes]\n [pull_modes.soci_v1]\n enable = true" >> /etc/soci-snapshotter-grpc/config.toml
333336
# enable offline ipfs for integration test
334337
COPY --from=build-kubo /out/${TARGETARCH:-amd64}/* /usr/local/bin/
335338
COPY ./Dockerfile.d/test-integration-etc_containerd-stargz-grpc_config.toml /etc/containerd-stargz-grpc/config.toml

0 commit comments

Comments
 (0)