Ivano
12/19/2022, 11:57 AM=> [build 5/6] COPY client/ . 0.0s
=> ERROR [build 6/6] RUN npm run build 2.1s
------
> [build 6/6] RUN npm run build:
#0 0.629
#0 0.629 > build
#0 0.629 > sh build_monaco_workers.sh && parcel build
#0 0.629
: not foundild_monaco_workers.sh: 3:
' is invalid. Allowed choices are none, error, warn, info, verbose.
' is invalid. Allowed choices are none, error, warn, info, verbose.
' is invalid. Allowed choices are none, error, warn, info, verbose.
' is invalid. Allowed choices are none, error, warn, info, verbose.
' is invalid. Allowed choices are none, error, warn, info, verbose.
------
failed to solve: executor failed running [/bin/sh -c npm run build]: exit code: 1
PS C:\Temp\demo-admin-api>
Sam Lock (Cerbos)
12/19/2022, 12:35 PMnot found
error is referring to, but the 5 log-level errors suggest it’s at least found build_monaco_workers.sh
to run the parcel build
commands 🤔ROOT=$PWD/node_modules/monaco-editor/esm/vs
npx parcel build $ROOT/language/json/json.worker.js --no-source-maps --log-level info
npx parcel build $ROOT/language/css/css.worker.js --no-source-maps --log-level info
npx parcel build $ROOT/language/html/html.worker.js --no-source-maps --log-level info
npx parcel build $ROOT/language/typescript/ts.worker.js --no-source-maps --log-level info
npx parcel build $ROOT/editor/editor.worker.js --no-source-maps --log-level info
Ivano
12/19/2022, 1:10 PM=> ERROR [build 6/6] RUN npm run build 2.7s
------
> [build 6/6] RUN npm run build:
#0 0.605
#0 0.605 > build
#0 0.605 > sh build_monaco_workers.sh && parcel build
#0 0.605
: not foundild_monaco_workers.sh: 2:
' is invalid. Allowed choices are none, error, warn, info, verbose.
' is invalid. Allowed choices are none, error, warn, info, verbose.
' is invalid. Allowed choices are none, error, warn, info, verbose.
' is invalid. Allowed choices are none, error, warn, info, verbose.
#0 2.483 🚨 Build failed.
#0 2.486
/editor/editor.worker.js app/node_modules/monaco-editor/esm/vs
#0 2.487 does not exist
------
failed to solve: executor failed running [/bin/sh -c npm run build]: exit code: 1
Sam Lock (Cerbos)
12/19/2022, 1:18 PMIvano
12/20/2022, 8:14 AMivanolx@N00057:/mnt/c/temp/demo-admin-api/cerbos$ ./start.sh
docker: invalid reference format.
See 'docker run --help'.
./start.sh: line 2: -v: command not found
./start.sh: line 3: -v: command not found
./start.sh: line 4: <http://ghcr.io/cerbos/cerbos:latest|ghcr.io/cerbos/cerbos:latest>: No such file or directory
./start.sh: line 5: server: command not found
: No such file or directoryg=/config/conf.yaml
ivanolx@N00057:/mnt/c/temp/demo-admin-api/cerbos$
PS C:\Temp\demo-admin-api> go run main.go
# <http://github.com/cerbos/cerbos/internal/observability/logging|github.com/cerbos/cerbos/internal/observability/logging>
C:\Users\ivanom\go\pkg\mod\<http://github.com|github.com>\cerbos\cerbos@v0.22.0\internal\observability\logging\logging.go:117:33: undefined: syscall.SIGUSR1
PS C:\Temp\demo-admin-api>
And errors also for the client on build_monaco_workers.shSam Lock (Cerbos)
12/20/2022, 9:33 AMsyscall.SIGUSR1
error, so we can look into!
The build_monaco_workers.sh
script - I wonder if this is a windows compatibility thing. What shell are you running? Do you have access to bash/sh?\
rather than /
in the various scripts (I could be clutching at straws here). Or things like $(pwd)
, etcIvano
12/20/2022, 9:43 AMSam Lock (Cerbos)
12/20/2022, 9:53 AMsh
script entirely, so if it solves your case I’ll probably raise for PR!Ivano
12/20/2022, 1:19 PMSam Lock (Cerbos)
12/20/2022, 1:27 PM