Repository navigation
Testing in a docker container #1
Unanswered
adamgoryachev
asked this question in
Q&A
Replies: 2 comments
|
Currently, it is recommended to run the UI in the LINSTOR controller using the installation package method. The original purpose of the development mode was to facilitate local development and similar tasks. Although this is not a best practice and is intended for development, I have still conducted an experiment to run the development mode in Docker: Here are the Dockerfile and commands:
I hope this information proves helpful to you. However, I would like to gently remind you once again that this is not the recommended approach. |
0 replies
|
The error message seems to indicate that the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Was looking to test this inside a docker container, and am not familiar with nodejs apps, but here is my attempt and where I got to. Appreciate any suggestions/advice.
Using the docker image node:22, and starting with a shell.
cd /root
git clone https://github.com/LINBIT/linstor-gui.git
cd linstor-gui/
cat .env
HOST=127.0.0.1
PORT=8080
VERSION=DEV
LINSTOR_API_HOST=http://192.168.x.x:3370
npm install --global cross-env
npm run start:dev
node:events:498
throw er; // Unhandled 'error' event
^
Error: spawn webpack ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn webpack',
path: 'webpack',
spawnargs: [ 'serve', '--config', 'webpack.dev.js' ]
}
Node.js v22.8.0
Happy to hear any ideas/suggestions on how to get this working?
All reactions