Skip to content

Commit f806a5e

Browse files
authored
Merge pull request #5769 from dctrud/issue5750
Switch from img to skopeo for e2e registry prep
2 parents f724099 + 376f617 commit f806a5e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

e2e/testdata/Docker_registry.def

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ from: registry:2.7.1
1010

1111
%post
1212
apk add openssl
13-
apk add runc --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
14-
15-
# Install v0.5.7 of img (latest will not talk to http registries)
16-
export IMG_SHA256="41aa98ab28be55ba3d383cb4e8f86dceac6d6e92102ee4410a6b43514f4da1fa"
17-
# Download and check the sha256sum.
18-
wget -q "https://github.com/genuinetools/img/releases/download/v0.5.7/img-linux-amd64" -O "/usr/local/bin/img" \
19-
&& echo "${IMG_SHA256} /usr/local/bin/img" | sha256sum -c - \
20-
&& chmod a+x "/usr/local/bin/img"
13+
apk add skopeo runc --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
2114

2215
mkdir /certs
2316

@@ -33,9 +26,7 @@ from: registry:2.7.1
3326
# wait until docker registry is up
3427
while ! wget -q -O /dev/null 127.0.0.1:5000 ; do sleep 0.5; done
3528

36-
img pull busybox || kill -TERM 1
37-
img tag busybox localhost:5000/my-busybox || kill -TERM 1
38-
img push localhost:5000/my-busybox || kill -TERM 1
29+
skopeo --dest-tls-verify=false copy docker://busybox docker://localhost:5000/my-busybox
3930

4031
# e2e PrepRegistry will repeatedly trying to connect to this port
4132
# giving indication that it can start

0 commit comments

Comments
 (0)