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

Can't build UI from DockerFile.UI #8513

Open
2 tasks done
egortech opened this issue Oct 5, 2024 · 1 comment
Open
2 tasks done

Can't build UI from DockerFile.UI #8513

egortech opened this issue Oct 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@egortech
Copy link

egortech commented Oct 5, 2024

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

On Ubuntu 22.04 ran:

 DOCKER_BUILDKIT=1 docker compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml -f build

Follow error occurs:

 => [cvat_ui stage-1 2/3] COPY cvat-ui/react_nginx.conf /etc/nginx/conf.d/default.conf                                          0.1s
------
 > [cvat_ui cvat-ui 10/16] RUN DISABLE_HUSKY=1 yarn --frozen-lockfile:
4.919 yarn install v1.22.15
6.044 [1/4] Resolving packages...
8.594 [2/4] Fetching packages...
8.632 warning Pattern ["cvat-core@link:./cvat-core"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-cvat-core-15.2.0/node_modules/cvat-core" as pattern ["cvat-core@15.2.0","cvat-core@15.2.0"]. This could result in non-deterministic behavior, skipping.
8.632 warning Pattern ["cvat-data@link:./cvat-data"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-cvat-data-2.1.0/node_modules/cvat-data" as pattern ["cvat-data@2.1.0","cvat-data@2.1.0"]. This could result in non-deterministic behavior, skipping.
8.632 warning Pattern ["cvat-canvas3d@link:./cvat-canvas3d"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-cvat-canvas3d-0.0.10/node_modules/cvat-canvas3d" as pattern ["cvat-canvas3d@0.0.10","cvat-canvas3d@0.0.10"]. This could result in non-deterministic behavior, skipping.
8.632 warning Pattern ["cvat-canvas@link:./cvat-canvas"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-cvat-canvas-2.20.9/node_modules/cvat-canvas" as pattern ["cvat-canvas@2.20.9","cvat-canvas@2.20.9"]. This could result in non-deterministic behavior, skipping.
92.17 info fsevents@2.3.3: The platform "linux" is incompatible with this module.
92.17 info "fsevents@2.3.3" is an optional dependency and failed compatibility check. Excluding it from installation.
92.23 error lint-staged@13.3.0: The engine "node" is incompatible with this module. Expected version "^16.14.0 || >=18.0.0". Got "16.13.0"
92.27 error Found incompatible module.
92.27 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
failed to solve: process "/bin/sh -c DISABLE_HUSKY=1 yarn --frozen-lockfile" did not complete successfully: exit code: 1

Expected Behavior

Build was successful

Possible Solution

Change the target node version in Dockerfile.UI to current one (node:current-slim) or fixed one to satisfy lint-staged node requirements ("^16.14.0 || >=18.0.0")

Context

No response

Environment

Git hash: commit 941f5c01deb65dead27202aedab72cc3a24d7cf9 (HEAD, tag: v2.20.0, origin/master)
Docker version: Docker version 27.3.1, build ce12230
@egortech egortech added the bug Something isn't working label Oct 5, 2024
@egortech
Copy link
Author

egortech commented Oct 5, 2024

I think that I forgot that Docker don't redownload images if tag the same and in my environment was used outdated LTS version of node image.

Using DOCKER_BUILDKIT=1 docker compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml -f build --pull fixed build problems

Anyway, should be used fixed node version in dockerfile to make reproductive build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant