-
Notifications
You must be signed in to change notification settings - Fork 134
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
fix: update NGINX Plus Dockerfile #274
Conversation
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 all makes sense. One question and one small suggestion. I'm going to run some tests with this then approve.
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
# Download your NGINX license certificate and key from the F5 customer portal (https://account.f5.com) and copy it to the build context |
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.
I wouldn't be sure what where I need to put my files based on this comment. I know we supply build context as the last argument to docker build
so does that mean that if I supply .
then this file expects my license files to be in the current dir?
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.
You would pass the location via the src
parameter in --secret id=nginx-crt,src=plus/etc/ssl/nginx/nginx-repo.crt
.
gpg1 --export "$NGINX_GPGKEY" > "$NGINX_GPGKEY_PATH" ; \ | ||
rm -rf "$GNUPGHOME"; \ | ||
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/*; \ | ||
echo "deb [signed-by=/etc/apt/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/debian/ $(echo $PKG_RELEASE | cut -f2 -d~) nginx" >> /etc/apt/sources.list.d/nginx.list; \ |
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.
Any particular reason we're removing this? Did the official nginx image GPG keys get updated?
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.
They did! All three keys (including the new two ones) are now part of the official image and the two new keys do not expire (in theory).
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.
Sorry for the delay! Manually tested! Ship it!
Proposed changes
This PR refactors the NGINX Plus Dockerfile by using the NGINX Plus Dockerfile found here gist.github.com/nginx-gists/36e97fc87efb5cf0039978c8e41a34b5 as a starting point.
This PR also refactors the various ENV instructions in both the NGINX OSS and NGINX Plus Dockerfiles to use the new guidelines where the key=value pair is separated by "=" instead of a whitespace.
Checklist
Before creating a PR, run through this checklist and mark each as complete:
README.md
).