From 2fac66981a26d723fff9f665c5b47688a2303cdf Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 29 Feb 2024 13:36:10 +0100 Subject: [PATCH] sync-images: address permission denied issue 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 --- sync-images/build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync-images/build/build b/sync-images/build/build index fe4b95b4..a0751f66 100644 --- a/sync-images/build/build +++ b/sync-images/build/build @@ -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}" -- 2.39.5