-
Notifications
You must be signed in to change notification settings - Fork 189
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
Reduce size of web service using nginx stable-alpine #2944
Conversation
I'm getting this at launch nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx | 2022/02/16 00:44:11 [warn] 1#1: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:22
nginx | nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:22
nginx | 2022/02/16 00:44:11 [emerg] 1#1: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
nginx | nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
nginx exited with code 1 |
I was able to run |
I did some testing and removing |
Let's switch the user we use in the two |
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.
This is great. Please file issues/PRs to do the same thing in other containers.
Issue This PR Addresses
Fixes #2835
Type of Change
There has been some discussion in the issue itself about how to tackle this. As requested by @humphd I have made a PR to get some help figuring this out.
Yesterday when I was trying this, I was getting an error message saying something like
the nginx user was not fond
. Today, when I went to replicate the error I get this message now when I run apnpm services:start
Switching into the web folder
cd src/web
and then running adocker build .
produces a similar errorDescription
Steps to test the PR
gh pr checkout 2944
pnpm services:start
Checklist