From cf6e4dd51ea43251c269e1bae4c981936204ba8d Mon Sep 17 00:00:00 2001 From: Robert Timm Date: Thu, 15 Aug 2024 12:45:16 +0000 Subject: [PATCH] fix: permissions for composer.local.json Depending on docker daemon user and github action checkout user, permissions on this file could differ, even breaking the build if not readable by the current user in the container build process. This patch ensures correct permissions. Appeared as a problem on a self hosted github actions runner. --- build/Wikibase/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Wikibase/Dockerfile b/build/Wikibase/Dockerfile index a626af546..1a09b07fa 100644 --- a/build/Wikibase/Dockerfile +++ b/build/Wikibase/Dockerfile @@ -105,7 +105,7 @@ FROM ${COMPOSER_IMAGE_URL} as composer COPY --from=mediawiki --chown=nobody:nogroup /var/www/html /var/www/html WORKDIR /var/www/html -COPY composer.local.json composer.local.json +COPY --chown=nobody:nogroup --chmod=755 composer.local.json composer.local.json ARG WIKIBASE_COMMIT RUN git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikibase /var/www/html/extensions/Wikibase && \