-
Notifications
You must be signed in to change notification settings - Fork 132
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
YARN_CACHE_FOLDER
in Dockerfile is not actually used
#3712
Labels
bug
Something isn't working
Comments
Neurone
changed the title
May 28, 2024
YARN_CACHE_FOLDER
in Docker file is not actually usedYARN_CACHE_FOLDER
in Dockerfile is not actually used
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
May 28, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
May 28, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
Jun 3, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
Jun 5, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Closed
2 tasks
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
Jun 12, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
Jul 1, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
Jul 10, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
Jul 30, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Neurone
added a commit
to Neurone/guardian
that referenced
this issue
Aug 9, 2024
Signed-off-by: Giuseppe Bertone <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
The
YARN_CACHE_FOLDER
is defined in the services'Dockerfile
but it's not actually used during the build process.This prevents the correct overriding of that variable from the outside CLI. This happens for all the services.
Side note: for some reason, while building on MacOS using
/root/.yarn
as ID of the cache results in errors during the building of the services. Overriding that variable with any other ID, e.g.,/root/yarn
allows the build process to finish correctly.Step to reproduce
Steps to reproduce the behavior:
docker compose build logger-service
=> CACHED [logger-service interfaces 3/3] RUN --mount=type=cache,target=/root/.yarn yarn install --frozen-lockfile && yarn pack
and verify the target is set to the default value
/root/.yarn
YARN_CACHE_FOLDER
variable:docker compose build logger-service --build-arg YARN_CACHE_FOLDER=/root/yarn
/root/.yarn
=> CACHED [logger-service interfaces 3/3] RUN --mount=type=cache,target=/root/.yarn yarn install --frozen-lockfile && yarn pack
Expected behavior
The value of the target changes accordingly to the
YARN_CACHE_FOLDER
variable's value.Screenshots
N/A
The text was updated successfully, but these errors were encountered: