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

Docker build broken by nsswitch.conf check #1477

Closed
dudleycarr opened this issue Dec 15, 2023 · 0 comments · Fixed by #1478
Closed

Docker build broken by nsswitch.conf check #1477

dudleycarr opened this issue Dec 15, 2023 · 0 comments · Fixed by #1478
Labels

Comments

@dudleycarr
Copy link
Contributor

NSQ Dockerfile depends on the latest alpine image. When building the NSQ Docker image, it produces the following error:

SCR-20231214-oiwd

This error occurs because Alpine now includes /etc/nsswitch.conf in the image:

SCR-20231214-ojbq

When the file exists, the condition [ ! -e /etc/nsswith.conf ] will return a status code of 1, failing the RUN and causing the build to fail.

Aside from the fact that Alpine now includes /etc/nsswith.conf, Golang has addressed the lack of /etc/nsswitch.conf since version 1.16. See this commit for reference:

golang/go@c800222

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

Successfully merging a pull request may close this issue.

2 participants