tangled
alpha
login
or
join now
pierrelf.com
/
grain
0
fork
atom
Rust implementation of OCI Distribution Spec with granular access control
0
fork
atom
overview
issues
9
pulls
pipelines
fix: create skopeo policy.json to allow image operations
pierrelf.com
3 months ago
94c45d46
7a776fd0
0/1
build.yml
failed
1m 21s
+14
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
build.yml
+14
.tangled/workflows/build.yml
···
34
34
command: |
35
35
set -ex
36
36
37
37
+
# Create policy.json for skopeo
38
38
+
mkdir -p ~/.config/containers
39
39
+
cat > ~/.config/containers/policy.json << 'POLICYEND'
40
40
+
{
41
41
+
"default": [{"type": "insecureAcceptAnything"}],
42
42
+
"transports": {
43
43
+
"docker": {
44
44
+
"gcr.io": [{"type": "insecureAcceptAnything"}],
45
45
+
"docker.io": [{"type": "insecureAcceptAnything"}]
46
46
+
}
47
47
+
}
48
48
+
}
49
49
+
POLICYEND
50
50
+
37
51
# Use umoci to create OCI image from distroless base
38
52
echo "Pulling distroless base..."
39
53
skopeo copy docker://gcr.io/distroless/cc-debian12:nonroot oci:base:latest