Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docker-image): ensure base & cache dir at build time #32594

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 && \
viceice marked this conversation as resolved.
Show resolved Hide resolved
chmod -R 775 /tmp/renovate

# test
RUN set -ex; \
renovate --version; \
Expand Down