Skip to content

Fix /usr/lib/libnss_wrapper.so not found error in Docker image#404

Merged
simu merged 3 commits into
masterfrom
fix/docker-image
Jan 21, 2022
Merged

Fix /usr/lib/libnss_wrapper.so not found error in Docker image#404
simu merged 3 commits into
masterfrom
fix/docker-image

Conversation

@simu

@simu simu commented Jan 21, 2022

Copy link
Copy Markdown
Member

#402 updates the Docker base image to Debian bullseye, which changes the location of libnss_wrapper.so from /usr/lib/libnss_wrapper.soto /usr/lib/x86_64-linux-gnu/libnss_wrapper.so. Our tests didn't catch this, because we didn't run the Docker image after building it.

This PR adds a few things:

  1. A step in the docker image build Github Action which runs the freshly built image
  2. A check that the configured libnss_wrapper.so path exists in /usr/local/bin/entrypoint.sh of the Docker image. This should ensure that the GitHub Action fails when the location of the library changes
  3. Update the entrypoint script to use the correct path for Debian bullseye

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update tests.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog

@simu simu added the bug Something isn't working label Jan 21, 2022
@simu simu force-pushed the fix/docker-image branch from e490ac1 to 07aaa94 Compare January 21, 2022 16:18
@simu simu requested a review from glrf January 21, 2022 16:19
@simu simu marked this pull request as ready for review January 21, 2022 16:20
@simu simu merged commit 0a83182 into master Jan 21, 2022
@simu simu deleted the fix/docker-image branch January 21, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants