Skip to content
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 official nginx repository to install nginx #3064

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kkimurak
Copy link
Contributor

This PR implements a part of #3056 (comment)

  1. Jammy just provides the package nginx/jammy-updates,jammy-security 1.18.0-6ubuntu14.5 amd64 which might be enough to update this project very soon. However, for future updates we should keep in mind that the webserver is an essential part of the image.

Applying these patches today (2025-01-24) to v17.8.1 will change the installed nginx version from 1.18.0-6ubuntu14.5 to 1.26.2-1~jammy.

Set a higher priority so that it is used in preference to the
nginx packages provided by the ubuntu repository
Directories such as /etc/nginx/sites-{enabled, available and similar}
are not available for nginx package comes from official nginx repository.

Ubuntu source may create this directory
refer1 : ubuntu distributes nginx with a file "nginx-common.dirs"
which lists these directories
https://git.launchpad.net/ubuntu/+source/nginx/tree/debian/nginx-common.dirs?h=ubuntu/jammy-updates

By default, nginx recognizes configuration files in /etc/nginx/conf.d/
Just change the destination path to install nginx configuration files
it reports error as it is duplicated
@kkimurak kkimurak force-pushed the use-official-nginx-repo branch from 06f399d to 928fc10 Compare February 21, 2025 04:09
@kkimurak
Copy link
Contributor Author

Rebased onto 17.8.2. I built it today (2025-02-21) and checked, and the version of nginx was 1.26.3-1~jammy.

@kkimurak
Copy link
Contributor Author

Build failed due to out of memory during bundle exec rake gitlab:assets:compile. This rarely happens, but it can be resolved by restarting the CI job. Since I'm not sure what the conditions are for this to happen, I can only provide a temporary solution.

https://app.circleci.com/pipelines/github/sameersbn/docker-gitlab/1840/workflows/5627af33-9236-4e00-b67d-7f5b98606f4c/jobs/8090?invite=true#step-102-510513_111

2350.7 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants