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

feat: use smaller distroless images for released containers #1092

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

mowies
Copy link
Member

@mowies mowies commented Mar 23, 2023

This PR

  • changes container base images to gcr.io/distroless/static-debian11:nonroot saving some space in the process

Final container image size comparison:

Image Size Before Size After
lifecycle-operator 22.3MB 13.8MB
metrics-operator 26.4MB 17.9MB
certificate-operator 20.7MB 12.2MB
scheduler 24.3MB 15.8MB

All images are 8.5MB smaller than before, totalling 34MB less download size during KLT installation.

Fixes #1087

Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
@netlify
Copy link

netlify bot commented Mar 23, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 1c1c341
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/641c1162dfc17300083638c3
😎 Deploy Preview https://deploy-preview-1092--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

Merging #1092 (84b25f6) into main (8608f11) will increase coverage by 0.08%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1092      +/-   ##
==========================================
+ Coverage   58.91%   59.00%   +0.08%     
==========================================
  Files         126      126              
  Lines       10007    10007              
==========================================
+ Hits         5896     5905       +9     
+ Misses       3893     3887       -6     
+ Partials      218      215       -3     

see 3 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 64.15% <ø> (ø)
component-tests 60.26% <ø> (-0.80%) ⬇️
lifecycle-operator 78.40% <ø> (ø)
metrics-operator 77.35% <ø> (ø)
scheduler 21.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Mar 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mowies mowies marked this pull request as ready for review March 23, 2023 09:31
@mowies mowies changed the title feat: use smaller distroless images for released images feat: use smaller distroless images for released containers Mar 23, 2023
@mowies mowies merged commit 8a7a6af into keptn:main Mar 23, 2023
@mowies mowies deleted the optimize-images branch March 23, 2023 10:03
@keptn-bot keptn-bot mentioned this pull request Mar 23, 2023
aepfli pushed a commit to aepfli/lifecycle-toolkit that referenced this pull request Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move from distroless base-debian to static images
3 participants