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 bases to bare #6

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

claudiubelu
Copy link
Contributor

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

The original Dockerfile uses gcr.io/distroless/static:latest, which has only a few packages. We can add those packages and switch to a bare-based image.

Helm charts may expect the speaker image to be able to copy some files.

The frr rock base is not switched to bare as it has quite a few runtime dependencies and it is a bit more complex.

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.

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

The original Dockerfile uses gcr.io/distroless/static:latest, which has
only a few packages. We can add those packages and switch to a
bare-based image.

Helm charts may expect the speaker image to be able to copy some files.

The frr rock base is not switched to bare as it has quite a few runtime
dependencies and it is a bit more complex.

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.
Copy link

@maci3jka maci3jka left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

LGTM

@bschimke95 bschimke95 merged commit aa20629 into canonical:main Nov 5, 2024
5 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