fix dev container
fix dev container fails
1 package is looking for funding
run npm fund for details
./scripts/setup.sh: line 13: cd: ./scripts/..: No such file or directory
I am new to this project but I am interested in how it works !
Dev container does not build, The directory is already changed in line 5 to the root why changing again !
Dev container does not build, The directory is already changed in line 5 to the root why changing again !
Because you need to install in different path the different components.
Back to your issue:
- What's is not working exactly ?
- How are you creating/starting the
devcontainer? - Which is the docker version you are running ?
- Is the host Windows or Linux ?
-
See attachment ! -
Reopen folder in container -
Docker Engine v27.2.0 -
Tried on both Fedora Linux and Windows 11
Reopen folder in container
You should use instead
Still the same !!!
Maybe you should add some debug messages to understand what is going on !
the screenshot should not the root cause, and the error should be exist before this screenshot. we need to find out the first error step, and it may not report error or exit 1, so the jobs continue running, and you got this error at the end of the scripts.
you can check the error before it, there is detail log for devcontainer build job, vscode will print all. if you still can't fix it, maybe you can upload devcontainer log as a file.
I have test with my windows PC with WSL2, try to run dev container jobs: [Rebuild devcontainer without cache], and got the same error.
Running the postCreateCommand from devcontainer.json...
[379457 ms] Start: Run in container: /bin/sh -c scripts/setup.sh
pre-commit installed at .git/hooks/pre-commit
pre-commit installed at .git/hooks/commit-msg
it start to run this script , and got an error with it:
[389501 ms] [15:28:52] Error while preparing to install dependencies and extension packs of the extension: ryanluker.vscode-coverage-gutters
[389503 ms] [15:28:52] Error while installing extensions: 40482AC94B7F0000:error:0A000119:SSL routines:ssl3_get_record:decryption failed or bad record mac:../deps/openssl/openssl/ssl/record/ssl3_record.c:622:
[389504 ms] [15:28:52] Failed: 40482AC94B7F0000:error:0A000119:SSL routines:ssl3_get_record:decryption failed or bad record mac:../deps/openssl/openssl/ssl/record/ssl3_record.c:622:
so, the result is :
added 11 packages in 46s
1 package is looking for funding
run `npm fund` for details
scripts/setup.sh: line 13: cd: scripts/..: No such file or directory
a ttach the full log as below: devcontainer.log