-
Notifications
You must be signed in to change notification settings - Fork 28
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
Improve docker-compose installation method: #274
base: master
Are you sure you want to change the base?
Conversation
1) proper variable usage in docker-compose.yml 2) put provision.sh inline of the Dockerfile 3) make container not rely on root user -- fixes npm permissions issue 4) define all versions at top of Dockerfile
hmm may need a note in the install instructions that the dpo-voyager folder needs to be writable by all ( alternatively could have the folders (e.g. files, node_modules, and dist) included in the repo with just a .gitkeep file in the folders if you're ok with the first, I'll make the PR on the docs as well |
Thanks for the PR @umer936, we will take a look. |
Can you describe the install process you are following in more detail? None of the installs we have on Windows or RHEL have a project folder that is writable by all. |
@umer936 Thanks for the extra context. I'm definitely interested in this PR since if you encountered the issue twice, odds are that others have as well. I just want to understand the underlying issue before making the change. If you come across any more info on what might have been different between your working/not working deployments, please do reopen. Thanks! |
I undid this commit on the branch I was working on on the Debian laptop and the issue returned. Windows is not having an issue. Will investigate again in a month or two. |
Jumping back into this as we have encountered somewhat similar issues on a new vm with a current version of Docker. Everything worked if the Voyager directory owner was set to root and no other changes. Not a viable solution, but just curious if this works in your case as well. The updates in this commit, by themselves, didn't fix things in our case. |
Feel free to modify as desired, but this means the container does not rely on npm being installed on the host system and it fixed the issues I was facing regarding npm failing permissions due to being run as root.