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 v4.0.2 rock base to bare #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

claudiubelu
Copy link
Contributor

@claudiubelu claudiubelu commented Oct 25, 2024

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

Only v4.0.2 is switched to bare as it is significantly simpler to achieve. It does require coreutils and procps (readiness probe uses pgrep).

We can no longer use ensure_image_contains_paths to check if files exist in the rock images, since they are now bare-based. Instead, we can use ensure_image_contains_paths_bare, which checks the image layers instead. Because of this, we need sufficient permissions to check the /var/lib/docker folder.

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

@claudiubelu claudiubelu requested a review from a team as a code owner October 25, 2024 16:09
Copy link

@addyess addyess left a comment

Choose a reason for hiding this comment

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

Nice improvement

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

Only v4.0.2 is switched to bare as it is significantly simpler to
achieve. It does require ``coreutils`` and ``procps`` (readiness probe
uses ``pgrep``).

We can no longer use ensure_image_contains_paths to check if files exist
in the rock images, since they are now bare-based. Instead, we can use
ensure_image_contains_paths_bare, which checks the image layers instead.
Because of this, we need sufficient permissions to check the
``/var/lib/docker`` folder.

Adds an extra sanity check during the integration tests, making sure that
there is no error reported in Pebble while starting the service.
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