-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
46 lines (38 loc) · 2.21 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
default:
just --list
download-alpine:
mkdir -p var/
skopeo --insecure-policy copy -a docker://docker.io/library/alpine:latest oci-archive://$PWD/var/alpine.tar.gz
test-skopeo-docker:
skopeo --debug login --tls-verify=false -u user -p password 127.0.0.1:5000
skopeo --debug --insecure-policy copy --dest-tls-verify=false -a oci-archive://$PWD/var/alpine.tar.gz docker://127.0.0.1:5000/user/alpine
skopeo --debug logout 127.0.0.1:5000
test-skopeo-zot:
skopeo --debug login --tls-verify=false -u user -p password 127.0.0.1:5001
skopeo --debug --insecure-policy copy --dest-tls-verify=false -a oci-archive://$PWD/var/alpine.tar.gz docker://127.0.0.1:5001/user/alpine
skopeo --debug logout 127.0.0.1:5001
test-regclient-docker:
regctl --verbosity debug registry set --tls=disabled 127.0.0.1:5000
regctl --verbosity debug registry login -u user -p password 127.0.0.1:5000
regctl --verbosity debug image import 127.0.0.1:5000/user/alpine $PWD/var/alpine.tar.gz
regctl --verbosity debug registry logout 127.0.0.1:5000
test-regclient-zot:
regctl --verbosity debug registry set --tls=disabled 127.0.0.1:5001
regctl --verbosity debug registry login -u user -p password 127.0.0.1:5001
regctl --verbosity debug image import 127.0.0.1:5001/user/alpine $PWD/var/alpine.tar.gz
regctl --verbosity debug registry logout 127.0.0.1:5001
test-all: test-skopeo-docker test-skopeo-zot test-regclient-docker
login:
skopeo --debug login --tls-verify=false -u user -p password 127.0.0.1:5000
skopeo --debug login --tls-verify=false -u user -p password 127.0.0.1:5001
regctl --verbosity debug registry set --tls=disabled 127.0.0.1:5000
regctl --verbosity debug registry login -u user -p password 127.0.0.1:5000
regctl --verbosity debug registry set --tls=disabled 127.0.0.1:5001
regctl --verbosity debug registry login -u user -p password 127.0.0.1:5001
logout:
skopeo --debug logout 127.0.0.1:5000
skopeo --debug logout 127.0.0.1:5001
regctl --verbosity debug registry set --tls=disabled 127.0.0.1:5000
regctl --verbosity debug logout 127.0.0.1:5000
regctl --verbosity debug registry set --tls=disabled 127.0.0.1:5001
regctl --verbosity debug logout 127.0.0.1:5001