Rath
Rath copied to clipboard
Error Command "build2" not found. Did you mean "build"?
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
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.
Couldn't find a detailed installation docs anywhere.
Yes! build2
should be replaced with build
to make it work. We also need to modify it in the client.dockerfile