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

npm CI is failing in docker compose #47

Closed
avicoder opened this issue Feb 14, 2024 · 8 comments
Closed

npm CI is failing in docker compose #47

avicoder opened this issue Feb 14, 2024 · 8 comments

Comments

@avicoder
Copy link

npm CI is failing

To Reproduce
docker compose up
Expected behavior
Application should run without error

Environment (please complete the following information):

  • Device: MacOS
  • OS: 14.2

Additional context

[+] Building 19.9s (9/15)                                                                                                                                                                                                                                docker:desktop-linux
 => [frontend internal] load build definition from Dockerfile                                                                                                                                                                                                            0.0s
 => => transferring dockerfile: 454B                                                                                                                                                                                                                                     0.0s
 => [frontend internal] load metadata for docker.io/library/node:18-alpine                                                                                                                                                                                               1.7s
 => [frontend auth] library/node:pull token for registry-1.docker.io                                                                                                                                                                                                     0.0s
 => [frontend internal] load .dockerignore                                                                                                                                                                                                                               0.0s
 => => transferring context: 222B                                                                                                                                                                                                                                        0.0s
 => [frontend internal] load build context                                                                                                                                                                                                                               0.0s
 => => transferring context: 17.14kB                                                                                                                                                                                                                                     0.0s
 => [frontend stage-1 1/5] FROM docker.io/library/node:18-alpine@sha256:0085670310d2879621f96a4216c893f92e2ded827e9e6ef8437672e1bd72f437                                                                                                                                 0.0s
 => CACHED [frontend stage-1 2/5] WORKDIR /app                                                                                                                                                                                                                           0.0s
 => CACHED [frontend builder 3/7] COPY package*.json .                                                                                                                                                                                                                   0.0s
 => ERROR [frontend builder 4/7] RUN npm ci                                                                                                                                                                                                                             18.2s
------
 > [frontend builder 4/7] RUN npm ci:
9.085 npm WARN deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
9.344 npm WARN deprecated [email protected]: Use your platform's native DOMException instead
17.39
17.39 > [email protected] postinstall
17.39 > paraglide-js compile --project ./project.inlang
17.39
17.73 ℹ [paraglide] Compiling inlang project at "./project.inlang".
17.75
17.75  WARN  Could not find repository root for path /app/project.inlang
17.75
17.76
17.76  WARN  The project has errors:
17.76
17.76
17.76  ERROR  The file at "/app/project.inlang/settings.json" could not be read. Does the file exists?
17.76
17.76   at loadSettings (node_modules/@inlang/paraglide-js/dist/index.js:24697:11)
17.76
17.77 npm notice
17.77 npm notice New minor version of npm available! 10.2.3 -> 10.4.0
17.77 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
17.77 npm notice Run `npm install -g [email protected]` to update!
17.77 npm notice
17.77 npm ERR! code 1
17.77 npm ERR! path /app
17.77 npm ERR! command failed
17.77 npm ERR! command sh -c paraglide-js compile --project ./project.inlang
17.77
17.77 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-02-14T07_44_52_432Z-debug-0.log
------
failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

@eric-intuitem
Copy link
Collaborator

Hi @avicoder, thanks for the notice, we'll solve that quickly.

@eric-intuitem
Copy link
Collaborator

@avicoder please pull the last version, this should solve the issue.

@avicoder
Copy link
Author

it is not resolved yet with the latest version, I got the same error.

@eric-intuitem
Copy link
Collaborator

Please delete the db directory, and start docker-compose.sh again, it should solve this issue.

@avicoder
Copy link
Author

sorry, it still persists, even deleting backend/db directory.
I suspect it has to do which the image build for frontend as you can see in the logs provided above.

@avicoder
Copy link
Author

@eric-intuitem
Copy link
Collaborator

Thanks @avicoder for your feedback! We are not able to reproduce the problem, despite having a very similar setup than yours. Which version of docker are you running?

@ab-smith
Copy link
Contributor

@avicoder, the issue will be closed due to inactivity. You're welcome to reopen it if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants