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

Error Command "build2" not found. Did you mean "build"? #360

Open
tillwf opened this issue May 12, 2023 · 3 comments
Open

Error Command "build2" not found. Did you mean "build"? #360

tillwf opened this issue May 12, 2023 · 3 comments

Comments

@tillwf
Copy link

tillwf commented May 12, 2023

I got this error when I try to launch Rath on the a fresh Ubuntu 22.10. What could I do?

> Rath [master] docker-compose up

Building frontend
[+] Building 2.0s (13/14)                                                                                                                                                                                          
 => [internal] load build definition from client.dockerfile                                                                                                                                                   0.0s
 => => transferring dockerfile: 448B                                                                                                                                                                          0.0s
 => [internal] load .dockerignore                                                                                                                                                                             0.0s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/nginx:latest                                                                                                                                               1.2s
 => [internal] load metadata for docker.io/library/node:16                                                                                                                                                    1.1s
 => CACHED [stage-1 1/2] FROM docker.io/library/nginx:latest@sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43                                                                          0.0s
 => [internal] load build context                                                                                                                                                                             0.1s
 => => transferring context: 68.86kB                                                                                                                                                                          0.0s
 => [build-stage 1/7] FROM docker.io/library/node:16@sha256:550f484fc5f314b575f5e397c9e2c71d7f218e59729fcda9ffa7ea1fc825dce7                                                                                  0.0s
 => CACHED [build-stage 2/7] COPY . /app                                                                                                                                                                      0.0s
 => CACHED [build-stage 3/7] WORKDIR /app                                                                                                                                                                     0.0s
 => CACHED [build-stage 4/7] RUN npm config set registry https://registry.npmmirror.com                                                                                                                       0.0s
 => CACHED [build-stage 5/7] RUN yarn config set registry https://registry.npmmirror.com                                                                                                                      0.0s
 => CACHED [build-stage 6/7] RUN yarn install                                                                                                                                                                 0.0s
 => ERROR [build-stage 7/7] RUN yarn workspace rath-client build2                                                                                                                                             0.6s
------                                                                                                                                                                                                             
 > [build-stage 7/7] RUN yarn workspace rath-client build2:
#0 0.404 yarn workspace v1.22.19
#0 0.558 yarn run v1.22.19
#0 0.601 error Command "build2" not found. Did you mean "build"?
#0 0.601 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
#0 0.613 error Command failed.
#0 0.613 Exit code: 1
#0 0.613 Command: /usr/local/bin/node
#0 0.613 Arguments: /opt/yarn-v1.22.19/lib/cli.js build2
#0 0.613 Directory: /app/packages/rath-client
#0 0.613 Output:
#0 0.613 
#0 0.613 info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
------
client.dockerfile:8
--------------------
   6 |     RUN yarn config set registry https://registry.npmmirror.com
   7 |     RUN yarn install
   8 | >>> RUN yarn workspace rath-client build2
   9 |     
  10 |     FROM nginx:latest
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn workspace rath-client build2" did not complete successfully: exit code: 1
ERROR: Service 'frontend' failed to build : Build failed
@diogoideguchi
Copy link

I changed the command using the suggestion, replacing build2 with build and it seems to have worked properly. I was able to generate the docker image and RATH is working.
I'm still curious on where it stores the dashboards and other info locally.

@acpmasquerade
Copy link

Couldn't find a detailed installation docs anywhere.

@shadab-sf
Copy link

Yes! build2 should be replaced with build to make it work. We also need to modify it in the client.dockerfile

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

4 participants