Skip to content

Commit

Permalink
fixup: use create to build testing buildah image
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <[email protected]>
  • Loading branch information
matejvasek committed Oct 19, 2023
1 parent 9e05354 commit 6e26472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Binary file added hack/allow-insecure.tar
Binary file not shown.
11 changes: 4 additions & 7 deletions hack/setup-testing-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ ko build --tags "latest" -B ./cmd/func

# Build custom buildah image for tests.
# This image will accept registries ending with .cluster.local as insecure (non-TLS).
docker build . -f - -t quay.io/buildah/stable:v1.31.0 <<EOF
FROM quay.io/buildah/stable:v1.31.0
RUN echo -e '\n[[registry]]\nprefix = "*.cluster.local"\ninsecure = true' >> '/etc/containers/registries.conf'
EOF

docker image save quay.io/buildah/stable:v1.31.0 | \
crane append --base=quay.io/buildah/stable:v1.31.0 \
--new_layer="$(dirname "$0")/allow-insecure.tar" \
--new_tag=quay.io/buildah/stable:v1.31.0 \
--output=/dev/stdout | \
docker exec -i func-control-plane ctr -n=k8s.io images import -
docker rmi quay.io/buildah/stable:v1.31.0

0 comments on commit 6e26472

Please sign in to comment.