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 build + FE test #4933

Merged
merged 2 commits into from
Jan 2, 2025
Merged

Fix docker build + FE test #4933

merged 2 commits into from
Jan 2, 2025

Conversation

RobertJoonas
Copy link
Contributor

@RobertJoonas RobertJoonas commented Dec 31, 2024

Changes

  • Hotfix for resolving a mismatch between NPM and Node JS versions in build-private-images.yml.
  • Fix a FE test that started failing due to year change from 2024 to 2025.

Copy link

Preview environment👷🏼‍♀️🏗️
PR-4933

@RobertJoonas RobertJoonas requested a review from a team December 31, 2024 13:18
@@ -20,8 +20,7 @@ RUN mkdir /app
WORKDIR /app

# install build dependencies
RUN apk add --no-cache git nodejs yarn python3 npm ca-certificates wget gnupg make gcc libc-dev brotli && \
npm install npm@latest -g
RUN apk add --no-cache git nodejs yarn python3 npm ca-certificates wget gnupg make gcc libc-dev brotli
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a hotfix, what you propose seems good!
However, I think best practice would be to build also in the container with the version we're using locally (as defined in .tool-versions and read in various worfklows using the version output by marocchino/tool-versions-action).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! In that case we'll need to install node from a source other than apk. I'll merge this one to unblock others and find a solution to use the node version from .tool-versions.

@RobertJoonas RobertJoonas changed the title Fix docker build Fix docker build + FE test Jan 2, 2025
@RobertJoonas RobertJoonas added this pull request to the merge queue Jan 2, 2025
Merged via the queue into master with commit 281f3ec Jan 2, 2025
8 checks passed
@RobertJoonas RobertJoonas deleted the fix-docker-build branch January 2, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants