Skip to content

Conversation

rcmadhankumar
Copy link
Contributor

Nginx can be run as non-root user(nginx user) as follows:

 podman run -it -p 8080:8080 -u 499:498 <nginx_bci_image>

where 499 and 498 are the UID and GID of nginx user.

bci-pushman pushed a commit that referenced this pull request Sep 24, 2025
bci-pushman pushed a commit that referenced this pull request Sep 24, 2025
bci-pushman pushed a commit that referenced this pull request Sep 24, 2025
Copy link

github-actions bot commented Sep 24, 2025

Created a staging project on OBS for Tumbleweed: home:pushman:BCI:Staging:Tumbleweed:Tumbleweed-2934
Changes pushed to branch Tumbleweed-2934 as commit 59495fedcf6be2d028e6c548f9de94afa45dbd15
Build succeeded ✅

Build Results

Repository containerfile in home:pushman:BCI:Staging:Tumbleweed:Tumbleweed-2934 for x86_64: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Repository containerfile in home:pushman:BCI:Staging:Tumbleweed:Tumbleweed-2934 for aarch64: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/pushman/bci/staging/tumbleweed/tumbleweed-2934/ tox -- -n auto
The following images can be pulled from the staging project:
  • registry.opensuse.org/home/pushman/bci/staging/tumbleweed/tumbleweed-2934/containerfile/opensuse/nginx:latest

Copy link

github-actions bot commented Sep 24, 2025

Created a staging project on OBS for 7: home:pushman:BCI:Staging:SLE-15-SP7:7-2934
Changes pushed to branch 7-2934 as commit 098327a7130f0d30077f8312c284c547f80ef7af
Build succeeded ✅

Build Results

Repository containerfile in home:pushman:BCI:Staging:SLE-15-SP7:7-2934 for x86_64: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Repository containerfile in home:pushman:BCI:Staging:SLE-15-SP7:7-2934 for aarch64: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Repository containerfile in home:pushman:BCI:Staging:SLE-15-SP7:7-2934 for s390x: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Repository containerfile in home:pushman:BCI:Staging:SLE-15-SP7:7-2934 for ppc64le: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=15.7 TARGET=custom BASEURL=registry.opensuse.org/home/pushman/bci/staging/sle-15-sp7/7-2934/ tox -- -n auto
The following images can be pulled from the staging project:
  • registry.opensuse.org/home/pushman/bci/staging/sle-15-sp7/7-2934/containerfile/suse/nginx:latest

Copy link

github-actions bot commented Sep 24, 2025

Created a staging project on OBS for 16.0: home:pushman:BCI:Staging:16.0:16.0-2934
Changes pushed to branch 16.0-2934 as commit 66fad1359aed88bc4d716092b2c268ed35bedc1f
Build succeeded ✅

Build Results

Repository containerfile in home:pushman:BCI:Staging:16.0:16.0-2934 for x86_64: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Repository containerfile in home:pushman:BCI:Staging:16.0:16.0-2934 for aarch64: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Repository containerfile in home:pushman:BCI:Staging:16.0:16.0-2934 for s390x: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Repository containerfile in home:pushman:BCI:Staging:16.0:16.0-2934 for ppc64le: current state: published
Build results:

package name status build log
nginx-image ✅ succeeded live log

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=16.0 TARGET=custom BASEURL=registry.opensuse.org/home/pushman/bci/staging/16.0/16.0-2934/ tox -- -n auto
The following images can be pulled from the staging project:
  • registry.opensuse.org/home/pushman/bci/staging/16.0/16.0-2934/containerfile/suse/nginx:1.27

"exposes_ports": [TCP(8080)],
"custom_end": f"""{version_check_lines}
# Modify the default Nginx config to listen on port 8080 and PID file location to a writable path
{DOCKERFILE_RUN} sed -i 's/listen *80;/listen 8080;/g' /etc/nginx/nginx.conf &&\\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change for anyone using the container as is.

In my view, if you want to change the container port and user, you must provide your own nginx.conf file.

I would just downgrade the nginx process by setting the worker user to nginx.

"extra_files": _NGINX_FILES,
"support_level": SupportLevel.L3,
"exposes_ports": [TCP(80)],
"exposes_ports": [TCP(8080)],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can't just change this without a version bump.

Copy link
Member

@dirkmueller dirkmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see inline comment

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.

3 participants