Skip to content

Backport: Fix NGINX failing to start when IPv6 is not available - #623

Merged
nscuro merged 1 commit into
DependencyTrack:4.9.xfrom
nscuro:backport-pr-621
Oct 23, 2023
Merged

Backport: Fix NGINX failing to start when IPv6 is not available#623
nscuro merged 1 commit into
DependencyTrack:4.9.xfrom
nscuro:backport-pr-621

Conversation

@nscuro

@nscuro nscuro commented Oct 23, 2023

Copy link
Copy Markdown
Member

Description

This is a regression introduced in #427.

The original NGINX image has a mechanism to enable IPv6 when it's available: https://github.com/nginxinc/docker-nginx-unprivileged/blob/1.25.2/entrypoint/10-listen-on-ipv6-by-default.sh

However, that mechanism is disabled when the default.conf file was modified (which we did).

This commit copies the entrypoint script from the base image, and modifies it, to make it work with our custom default.conf.

Fixes #427 (comment)

Addressed Issue

N/A

Additional Details

N/A

Checklist

This is a regression introduced in DependencyTrack#427.

The original NGINX image has a mechanism to enable IPv6 when it's available: https://github.com/nginxinc/docker-nginx-unprivileged/blob/1.25.2/entrypoint/10-listen-on-ipv6-by-default.sh

 However, that mechanism is disabled when the `default.conf` file was modified (which we did).

 This commit copies the entrypoint script from the base image, and modifies it, to make it work with our custom `default.conf`.

 Fixes DependencyTrack#427 (comment)

Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro added this to the 4.9.1 milestone Oct 23, 2023
@nscuro
nscuro merged commit b180257 into DependencyTrack:4.9.x Oct 23, 2023
@nscuro
nscuro deleted the backport-pr-621 branch October 23, 2023 20:47
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.

1 participant