From 726ec773ed668935195933ee759106c6a2e26c06 Mon Sep 17 00:00:00 2001 From: Gabriel Ladzaretti Date: Mon, 18 Nov 2024 12:04:18 +0200 Subject: [PATCH 1/3] ensure base & cache dir at docker image --- lib/util/cache/repository/common.ts | 2 +- tools/docker/Dockerfile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/util/cache/repository/common.ts b/lib/util/cache/repository/common.ts index 2108a57e66a479..a7fad1e4e28411 100644 --- a/lib/util/cache/repository/common.ts +++ b/lib/util/cache/repository/common.ts @@ -1,6 +1,6 @@ -// Increment this whenever there could be incompatibilities between old and new cache structure import upath from 'upath'; +// Increment this whenever there could be incompatibilities between old and new cache structure export const CACHE_REVISION = 13; export function getLocalCacheFileName( diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index fe0ab3b4c3c98a..9780c4399e6c48 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -95,6 +95,10 @@ COPY --link --from=build --chown=root:root /usr/local/renovate/ /usr/local/renov # make our node binary available as last in path RUN ln -sf /usr/local/renovate/node /bin/node +# ensure default base and cache directories exist. +RUN mkdir -p /tmp/renovate /tmp/renovate/cache && \ + chmod 775 /tmp/renovate /tmp/renovate/cache + # test RUN set -ex; \ renovate --version; \ From be0aafc3bd34bd8d1e3b1c818c7c15ab48d0372c Mon Sep 17 00:00:00 2001 From: Gabriel-Ladzaretti <97394622+Gabriel-Ladzaretti@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:23:36 +0200 Subject: [PATCH 2/3] Update tools/docker/Dockerfile Co-authored-by: Michael Kriese --- tools/docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 9780c4399e6c48..bd611b57abbbd7 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -96,8 +96,8 @@ COPY --link --from=build --chown=root:root /usr/local/renovate/ /usr/local/renov RUN ln -sf /usr/local/renovate/node /bin/node # ensure default base and cache directories exist. -RUN mkdir -p /tmp/renovate /tmp/renovate/cache && \ - chmod 775 /tmp/renovate /tmp/renovate/cache +RUN mkdir -p /tmp/renovate/cache && \ + chmod -R 775 /tmp/renovate/cache # test RUN set -ex; \ From 3f53a0e25d87871282d26cc7132d99ff199db27c Mon Sep 17 00:00:00 2001 From: Gabriel-Ladzaretti <97394622+Gabriel-Ladzaretti@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:38:59 +0200 Subject: [PATCH 3/3] Update tools/docker/Dockerfile --- tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index bd611b57abbbd7..1d42e3bd78fde2 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -97,7 +97,7 @@ RUN ln -sf /usr/local/renovate/node /bin/node # ensure default base and cache directories exist. RUN mkdir -p /tmp/renovate/cache && \ - chmod -R 775 /tmp/renovate/cache + chmod -R 775 /tmp/renovate # test RUN set -ex; \