forked from nginxinc/docker-nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use new nginx version and update module build process #2
Open
dima11051994
wants to merge
114
commits into
master
Choose a base branch
from
feature/remote-master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The build sometimes fails to remove the `S.gpg-agent.extra` unix domain socket when it deletes the temporary GNUPGHOME directory after running gpg commands. rm: can't remove '/tmp/tmp.hBDCKF/S.gpg-agent.extra': No such file or directory The previous gpg --recv-keys command starts the gpg-agent. The gpg-agent connects to the following sockets and does not terminate on its own. / # netstat -x -a -p Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 8627378 17/dirmngr /root/.gnupg/S.dirmngr unix 2 [ ACC ] STREAM LISTENING 8625135 21/gpg-agent /root/.gnupg/S.gpg-agent unix 2 [ ACC ] STREAM LISTENING 8625136 21/gpg-agent /root/.gnupg/S.gpg-agent.extra unix 2 [ ACC ] STREAM LISTENING 8625137 21/gpg-agent /root/.gnupg/S.gpg-agent.browser unix 2 [ ACC ] STREAM LISTENING 8625138 21/gpg-agent /root/.gnupg/S.gpg-agent.ssh If one of the sockets is removed, then the agent terminates and removes the other sockets as well. This causes a race condition between `rm -rf $GNUPGHOME` and gpg-agent. If gpg-agent manages to remove the sockets first, then `rm` fails while trying to remove the same socket. Move to gnupg1 in alpine just like we do for stretch. Gnupg version 1 does not launch a GPG agent. It is not possible to disable gpg-agent in gnupg version 2. (cherry picked from commit 684e1c6) Signed-off-by: Konstantin Pavlov <[email protected]>
(cherry picked from commit 4209281) Signed-off-by: Konstantin Pavlov <[email protected]>
For the architectures unavailable on nginx.org, build from the official packaging sources. Also adds njs.
While at it, merge mainline versioning changes.
101 was chosen as UID/GID for both supported platforms since that's the first unused pair. This also looks forward compatible at least for now with Debian Buster and Alpine 3.10 as from the :edge tag of the time writing this message. Fixes: nginxinc#218.
And other minor formatting fixes Signed-off-by: Konstantin Pavlov <[email protected]>
This makes stable images buildable until the next version bump.
Signed-off-by: Konstantin Pavlov <[email protected]>
By popular request in nginxinc#419
…esses The script is a no-op bye default, you would need to enable its logic by setting an NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE variable to any value. The script then tries to get the following values: - getconf _NPROCESSORS_ONLN - the amount of cpus from cpuset cgroupv1 - the quotas from cpu/cpuacct cgroupv1 - the amount of cpus from cgroupv2 - the quotas from cgroupv2 The lowest of all five is then applied to nginx.conf. Fixes nginxinc#472
…rsion We're now using a tip of default branch on pkg-oss which moves fast and breaks things. A better solution is probably to check out a specific nginx tag and build whatever is available for it. This, however, is not currently possible with 1.19.6, and only works for 1.19.7. This should probably be reverted once we have enough tags supporting it.
While at it, bumped alpine base image to 3.13 and njs to 0.5.3
This is suggested as a fix for build issues (nginxinc#525) in https://gitlab.alpinelinux.org/alpine/abuild/-/commit/32b7789e9ac09dad7f6d39df349c9a94e93e00c8
While at it, move mainline builds to alpine 3.14.
evanpdk
approved these changes
Aug 27, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We needed to merge all changes from the upstream repo in order to use the new version of nginx. But a lot of things have changed there since our fork was done, so there were conflicts. I resolved all the conflicts in a separate branch, checked that the new build process now works, and prepared this PR.
The previous PR can be closed because it is not valid.