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

Changes rock base to bare #9

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

claudiubelu
Copy link
Contributor

@claudiubelu claudiubelu commented Oct 22, 2024

Switching to a bare-based image will reduce the overall image size and reduces attack surface area.

Adding the CGO_ENABLED=0 will result in the go binary being statically linked, which means it won't need the /lib and /lib64 folders to run. This allows us to switch the base image to bare, greatly reducing the image size.

Adds an extra sanity check during the integration tests, making sure that there is no error reported in Pebble while starting the service.

Switching to a bare-based image will reduce the overall image size
and reduces attack surface area.

Adding the ``CGO_ENABLED=0`` will result in the go binary being
statically linked, which means it won't need the ``/lib`` and ``/lib64``
folders to run. This allows us to switch the base image to bare, greatly
reducing the image size.

Adds an extra sanity check during the integration test, making sure that
there is no error reported in Pebble while starting the service.
@claudiubelu claudiubelu changed the title switch base to bare Changes rock base to bare Oct 28, 2024
@bschimke95 bschimke95 merged commit ea0c61c into canonical:main Nov 5, 2024
7 of 9 checks passed
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