Skip to content

Commit

Permalink
fix(docker-image): ensure base & cache dir at build time (#32594)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <[email protected]>
  • Loading branch information
Gabriel-Ladzaretti and viceice authored Nov 19, 2024
1 parent 743fed0 commit 1f71981
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/cache/repository/common.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
4 changes: 4 additions & 0 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit 1f71981

Please sign in to comment.