|
41 | 41 | # TLS authentication is disabled in Quay local registry. The mirror-images.sh
|
42 | 42 | # helper uses skopeo without TLS options and it defaults to https, so we need
|
43 | 43 | # to configure registries.conf.d for skopeo to try http instead.
|
44 |
| - sudo bash -c 'cat > /etc/containers/registries.conf.d/900-microshift-mirror.conf' << EOF |
| 44 | + sudo bash -c 'cat > /etc/containers/registries.conf.d/900-microshift-mirror.conf' <<EOF |
45 | 45 | [[registry]]
|
46 | 46 | prefix = ""
|
47 | 47 | location = "${MIRROR_REGISTRY_URL}"
|
|
63 | 63 | EOF
|
64 | 64 |
|
65 | 65 | # Complete the source registry configuration to use sigstore attachments.
|
66 |
| -# Note that registry.redhat.io.yaml should already be present. |
67 |
| -sudo bash -c 'cat > /etc/containers/registries.d/registry.quay.io.yaml' <<EOF |
| 66 | +# Note that registry.redhat.io.yaml file already exists, but it is missing the |
| 67 | +# sigstore attachment enablement setting. |
| 68 | +sudo bash -c 'cat > /etc/containers/registries.d/registry.quay.io.yaml' <<'EOF' |
68 | 69 | docker:
|
69 | 70 | quay.io:
|
70 | 71 | use-sigstore-attachments: true
|
71 | 72 | EOF
|
72 | 73 |
|
| 74 | +if [ -e /etc/containers/registries.d/registry.redhat.io.yaml ] && |
| 75 | + [ ! -e /etc/containers/registries.d/registry.redhat.io.yaml.orig ]; then |
| 76 | + sudo mv /etc/containers/registries.d/registry.redhat.io.yaml /etc/containers/registries.d/registry.redhat.io.yaml.orig |
| 77 | +fi |
| 78 | + |
| 79 | +sudo bash -c 'cat > /etc/containers/registries.d/registry.redhat.io.yaml' <<'EOF' |
| 80 | +docker: |
| 81 | + registry.redhat.io: |
| 82 | + use-sigstore-attachments: true |
| 83 | + sigstore: https://registry.redhat.io/containers/sigstore |
| 84 | +EOF |
| 85 | + |
73 | 86 | # Configure the destination local registry to use sigstore attachments.
|
74 | 87 | # Note: The sigstore staging directory is required because not all registries
|
75 | 88 | # support direct copy of signatures. In this case, the signatures are downloaded
|
|
0 commit comments