-
Notifications
You must be signed in to change notification settings - Fork 857
Added in workaround in DEVELOPMENT.md
for docker permissions fix for Ubuntu
#4801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added in workaround in DEVELOPMENT.md
for docker permissions fix for Ubuntu
#4801
Conversation
I still wonder if we should consider a broader fix like: We could update the docker-compose.yaml file to have: but I don't know how that works in with the GCP infrastructure. |
Size Change: 0 B Total Size: 6.68 MB ℹ️ View Unchanged
|
docs/DEVELOPMENT.md
Outdated
web | [BE] $ cd .. && node --trace-warnings server/js/main.js | ||
web | [BE] Could not load config.json, using defaults (error message: ENOENT: no such file or directory, open './config.json') | ||
web | [BE] unhandled promise rejection TypeError: Cannot read properties of null (reading 'includes') | ||
web | [BE] at resolveWellKnownUri (/code/node_modules/openid-client/lib/issuer.js:179:23) | ||
web | [BE] at Function.discover (/code/node_modules/openid-client/lib/issuer.js:142:26) | ||
web | [BE] at setupAuthRouter (/code/server/src/auth-router.ts:36:34) | ||
web | [BE] at Server.setupApp (/code/server/src/server.ts:125:36) | ||
web | [BE] at runServer (/code/server/src/main.ts:27:18) | ||
web | [BE] at Object.<anonymous> (/code/server/src/main.ts:34:1) | ||
web | [BE] at Module._compile (node:internal/modules/cjs/loader:1364:14) | ||
web | [BE] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1422:10) | ||
web | [BE] at Module.load (node:internal/modules/cjs/loader:1203:32) | ||
web | [BE] at Function.Module._load (node:internal/modules/cjs/loader:1019:12) | ||
web | [BE] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @KathyReid , that's not an error that is related to wrong user permissions. That's just a residue from old times when some devs created their own config.json
to overwrite config parameters. The right error message is something in the lines of
EACCES permission denied mkdir /code/node_modules
If possible it would be great to put the right error message here or else just remove this one, as it has nothing to do with the permissions :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, I have removed this block and added examples of two errors observed when the permission issue occurs.
docs/DEVELOPMENT.md
Outdated
|
||
The workaround is to first identify the `UID` and `GID` of the current user, then edit the line in `docker-compose.yaml` to have that `UID` and `GID`: | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
```sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call, thank you for flagging.
docs/DEVELOPMENT.md
Outdated
The workaround is to first identify the `UID` and `GID` of the current user, then edit the line in `docker-compose.yaml` to have that `UID` and `GID`: | ||
|
||
``` | ||
$ id -u |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using >
to be consistent with our other cmd line examples
$ id -u | |
> id -u |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah thank you for flagging
docs/DEVELOPMENT.md
Outdated
$ id -u | ||
1000 | ||
|
||
$ id -g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using >
to be consistent with our other cmd line examples
$ id -g | |
> id -u |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you again :-)
Just merged, thank you @moz-kathyreid 🚀 |
Pull Request Form
Type of Pull Request
A possible workaround for the following Issues:
Acknowledging contributors