]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sync-images: address permission denied issue 2211/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 29 Feb 2024 12:36:10 +0000 (13:36 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 29 Feb 2024 12:36:10 +0000 (13:36 +0100)
adding `--security-opt label=disable` to workaround the following error:

```
time="2024-02-29T12:04:24Z" level=fatal msg="open /sync.yml: permission denied"
```

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
sync-images/build/build

index fe4b95b4442d56a5b8484385d96ebfbb084b71fb..a0751f668b192c627affd6fb8c2fd41bf9a0a529 100644 (file)
@@ -10,4 +10,4 @@ docker.io:
     grafana/grafana: ^(9\.?|[0-9]{2,}\.?)([0-9]*\.?){1,}$
 EOF
 
-podman run --rm -v ./sync.yml:/sync.yml quay.io/skopeo/stable sync --src yaml --dest docker /sync.yml "${DEST_REGISTRY}" --dest-username "${DEST_USERNAME}" --dest-password "${DEST_PASSWORD}"
+podman run --rm --security-opt label=disable -v ./sync.yml:/sync.yml:ro quay.io/skopeo/stable sync --src yaml --dest docker /sync.yml "${DEST_REGISTRY}" --dest-username "${DEST_USERNAME}" --dest-password "${DEST_PASSWORD}"