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

images: move most plugin images to distroless/static #635

Merged
merged 1 commit into from
May 19, 2021

Conversation

mythi
Copy link
Contributor

@mythi mythi commented May 18, 2021

All but one (VPU) of the published container images can be built with
static binaries which allows us to use distroless/static as the
base image. Moreover, when combined with stripping the plugin binaries,
we can get both build time and image size savings.

This is the part 1 (out of 2) of the rework. Part 2 will finish the
change by making some adjustments to VPU plugin image and moving the
FPGA/SGX/GPU initcontainers to distroless/static too.

Partial: #516

Signed-off-by: Mikko Ylinen mikko.ylinen@intel.com
Signed-off-by: Ed Bartosh eduard.bartosh@intel.com

@mythi mythi requested review from bart0sh, kad and rojkov as code owners May 18, 2021 11:36
Copy link
Contributor

@rojkov rojkov 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. It's nice the image's passwd includes an unprivileged user already.

@bart0sh
Copy link
Member

bart0sh commented May 18, 2021

/lgtm

@mythi why some tests fail?

@mythi
Copy link
Contributor Author

mythi commented May 18, 2021

@bart0sh according to githubstatus.com the Actions service is having problems.

@codecov-commenter
Copy link

Codecov Report

Merging #635 (e02e2a2) into main (17862ca) will not change coverage.
The diff coverage is n/a.

❗ Current head e02e2a2 differs from pull request most recent head 43aa036. Consider uploading reports for the commit 43aa036 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #635   +/-   ##
=======================================
  Coverage   57.30%   57.30%           
=======================================
  Files          31       31           
  Lines        2136     2136           
=======================================
  Hits         1224     1224           
  Misses        842      842           
  Partials       70       70           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17862ca...43aa036. Read the comment docs.

All but one (VPU) of the published container images can be built with
static binaries which allows us to use distroless/static as the
base image. Moreover, when combined with stripping the plugin binaries,
we can get both build time and image size savings.

This is the part 1 (out of 2) of the rework. Part 2 will finish the
change by making some adjustments to VPU plugin image and moving the
FPGA/SGX/GPU initcontainers to distroless/static too.

Partial: intel#516

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Copy link
Member

@bart0sh bart0sh left a comment

Choose a reason for hiding this comment

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

/lgtm

@rojkov rojkov merged commit 0eb40c8 into intel:main May 19, 2021
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.

None yet

4 participants