trustroots
trustroots copied to clipboard
fix podman, update some stuff, remove redundant stuff
Proposed Changes
- Add volume instruction that makes it work with rootless containers
- Remove redundancy in environment variable declaration
- Remove unnecessary fluff from docker-compose.yml
Testing Instructions
- Install docker if you don't have it yet: https://docs.docker.com/engine/install/
- Do the config/env/local.js thing described here: https://team.trustroots.org/Install-Docker.html
- docker-compose up
- should work (localhost:3000)
Fixes #2581
I borrowed a laptop, installed docker, and got the environment to run just fine with this PR. But it'd be nice if someone else tested it.
I tried it and I am getting
trustroots_1 | [webpack-cli] Failed to load '/trustroots/config/webpack/webpack.config.js' config
trustroots_1 | [webpack-cli] Error: Cannot find module 'eslint-webpack-plugin'
trustroots_1 | Require stack:
trustroots_1 | - /trustroots/config/webpack/webpack.config.js
trustroots_1 | - /trustroots/node_modules/webpack-cli/lib/webpack-cli.js
trustroots_1 | - /trustroots/node_modules/webpack-cli/lib/bootstrap.js
trustroots_1 | - /trustroots/node_modules/webpack-cli/bin/cli.js
trustroots_1 | - /trustroots/node_modules/webpack/bin/webpack.js
trustroots_1 | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
trustroots_1 | at Function.Module._load (internal/modules/cjs/loader.js:746:27)
trustroots_1 | at Module.require (internal/modules/cjs/loader.js:974:19)
trustroots_1 | at require (/trustroots/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
trustroots_1 | at Object.<anonymous> (/trustroots/config/webpack/webpack.config.js:7:22)
trustroots_1 | at Module._compile (/trustroots/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
trustroots_1 | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
trustroots_1 | at Module.load (internal/modules/cjs/loader.js:950:32)
trustroots_1 | at Function.Module._load (internal/modules/cjs/loader.js:790:14)
trustroots_1 | at Module.require (internal/modules/cjs/loader.js:974:19) {
trustroots_1 | code: 'MODULE_NOT_FOUND',
trustroots_1 | requireStack: [
trustroots_1 | '/trustroots/config/webpack/webpack.config.js',
trustroots_1 | '/trustroots/node_modules/webpack-cli/lib/webpack-cli.js',
trustroots_1 | '/trustroots/node_modules/webpack-cli/lib/bootstrap.js',
trustroots_1 | '/trustroots/node_modules/webpack-cli/bin/cli.js',
trustroots_1 | '/trustroots/node_modules/webpack/bin/webpack.js'
trustroots_1 | ]
trustroots_1 | }
trustroots_1 | npm ERR! code ELIFECYCLE
trustroots_1 | npm ERR! errno 2
trustroots_1 | npm ERR! [email protected] webpack:server: `webpack serve --hot --config config/webpack/webpack.config.js`
trustroots_1 | npm ERR! Exit status 2
trustroots_1 | npm ERR!
trustroots_1 | npm ERR! Failed at the [email protected] webpack:server script.
trustroots_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
trustroots_1 |
trustroots_1 | npm ERR! A complete log of this run can be found in:
trustroots_1 | npm ERR! /root/.npm/_logs/2022-08-18T04_43_34_932Z-debug.log
Locally on my machine (without docker) I build and run TR code with node 16. In Dockerfile we use node 14. I tried both and none of them works for me.
@mariha : thanks for testing. I'm assuming you tried setting up TR the traditional way. I tried as well, and it's working.
My setup: Node v16.17.0 / Mongo 4.4.4 I followed the instructions there: https://team.trustroots.org/Install.html
If that's not what you did, could you describe what you did to get to that point?