From 1f719819c101d55b63ea94401127472943b6fec7 Mon Sep 17 00:00:00 2001 From: Gabriel-Ladzaretti <97394622+Gabriel-Ladzaretti@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:16:38 +0200 Subject: [PATCH] fix(docker-image): ensure base & cache dir at build time (#32594) Co-authored-by: Michael Kriese --- 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 d39dd5a2ce7f61..a41e47531dc987 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/cache && \ + chmod -R 775 /tmp/renovate + # test RUN set -ex; \ renovate --version; \