Skip to content

Commit 926b275

Browse files
committed
permission issues fix for podman in ci
Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
1 parent 0998b25 commit 926b275

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test-integration/hack/_emulator_handling.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ start_emulator() {
5656
local container_image="mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview"
5757
local ready_log_message="PostgreSQL and pgcosmos extension are ready"
5858

59+
# The vnext image has a /home/nonroot dir owned by UID 65532 which rootless
60+
# podman in OpenShift CI cannot map. The emulator doesn't use it, so ignoring
61+
# the chown error during pull is safe.
62+
if [ "${CONTAINER_RUNTIME}" = "podman" ]; then
63+
${CONTAINER_RUNTIME} pull --storage-opt ignore_chown_errors=true "${container_image}"
64+
fi
65+
5966
echo "Starting Cosmos DB emulator with container name: ${container_name}"
6067
${CONTAINER_RUNTIME} run \
6168
--publish 8081:8081 \

0 commit comments

Comments
 (0)