Skip to content

Commit

Permalink
chore: use image file replace remote registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
kycheng committed Apr 9, 2024
1 parent d300f3d commit badaff7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -eu
tmp=$(mktemp -d /tmp/buildctl-daemonless.XXXXXX)
trap "kill \$(cat $tmp/pid) || true; wait \$(cat $tmp/pid) || true; cat $tmp/log" EXIT
source /workspace/tools.sh
config_dns
configDns

# 启动 buildkitd 守护进程
echo "start buildkitd..."
Expand Down
Binary file added e2e/test_image.tar
Binary file not shown.
8 changes: 4 additions & 4 deletions e2e/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ startRegistry() {
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
-p 4443:443 \
registry:2
skopeo copy --src-tls-verify=false --dest-tls-verify=false docker://registry.alauda.cn:60080/ops/alpine:3 docker://localhost/ops/alpine:3 --all
skopeo copy --src-tls-verify=false --dest-tls-verify=false docker://registry.alauda.cn:60080/ops/alpine:3 docker://localhost:4443/ops/alpine:3 --all
skopeo copy --dest-tls-verify=false docker-archive:./test_image.tar docker://localhost/ops/alpine:3 --all
skopeo copy --dest-tls-verify=false docker-archive:./test_image.tar docker://localhost:4443/ops/alpine:3 --all
}

config_dns() {
configDns() {
echo "127.0.0.1 test.registry.com" >> /etc/hosts
}

perpare() {
startRegistry
config_dns
configDns
}

0 comments on commit badaff7

Please sign in to comment.