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

Fixed the build of the docker image #628

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Fixed the build of the docker image #628

merged 1 commit into from
Sep 25, 2024

Conversation

andy-maier
Copy link
Member

For details, see the commit message.

@andy-maier andy-maier self-assigned this Sep 25, 2024
@zhmcclient zhmcclient deleted a comment from GitCop Sep 25, 2024
@andy-maier andy-maier added this to the 2.0.0 milestone Sep 25, 2024
@andy-maier andy-maier force-pushed the andy/fix-docker branch 2 times, most recently from 7f21f2b to 75f9a0f Compare September 25, 2024 18:12
@andy-maier andy-maier linked an issue Sep 25, 2024 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Sep 25, 2024

Coverage Status

coverage: 36.993%. remained the same
when pulling d45d52c on andy/fix-docker
into 9778e8a on master.

Copy link
Member

@anilak11 anilak11 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@andy-maier andy-maier force-pushed the andy/fix-docker branch 2 times, most recently from fba79ce to e971877 Compare September 25, 2024 19:13
…mage

Details:

* The Dockerfile used the python:3.12-slim image for the builder environment
  and switched that to the python:3.12-alpine image for the final container
  environment.

  The installation of the 'rpds' Python package builds a shared library. That
  library was built against the builder OS and then attempted to be run in the
  (different) final OS. The two OS images were different enough for that to
  fail.

  Fixed that by using the same OS image python:3.12-slim for both enviroments.

  This increased the image size from 86 MB to 186 MB.

* Added showing the rpds package files to the docker builder phase.

* Added test to 'docker make' for running the docker image to show the
  exporter version.

Signed-off-by: Andreas Maier <[email protected]>
@andy-maier
Copy link
Member Author

After Anilak's approval, I added running the docker image for testing it.

@andy-maier andy-maier merged commit eff8976 into master Sep 25, 2024
13 checks passed
@andy-maier andy-maier deleted the andy/fix-docker branch September 25, 2024 19:39
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.

Image created with make docker is broken
3 participants