Repository navigation
Adding distroless image to Envoy CI pipeline - #16268
Conversation
Signed-off-by: Oleksiy Pylypenko <[email protected]>
|
Hi @oleksiyp, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
|
cc @lizan |
|
once this lands i will to through the examples and start shifting over anything that currently uses the alpine images we also need to update docs to include some refs to this image |
|
Hold on a little bit. I am still trying to run it locally. Wanted to trigger CI build to check it and open PR for discussion. Will return back with a commit or acknowledgment that everything is okay. |
|
cool, yep it seems to be failing with a missing |
|
i think you need |
|
Don't think sh is included. Only is added to ":debug" images |
|
this might work alternatively i think (edit: or something like that - ie not java image, not debug and correct path) |
|
hmm - maybe not - testing this locally and busybox isnt there either |
|
Shell is added only to ":debug" images + 'python' distroless has "dash" because there is no other way to run it. |
|
i think then maybe copying in the directory using a multistage build |
|
something vaguely like this GoogleContainerTools/distroless#427 (comment) |
Signed-off-by: Oleksiy Pylypenko <[email protected]>
|
I think RUN is not needed here at all.
|
|
relatedly - this is the getenvoy Dockerfile - https://github.com/tetratelabs/getenvoy/blob/master/Dockerfile not sure exactly why they use the |
and differs that second type of command runs shell I believe, while first just uses |
|
i see so iiuc this should work now i had a poke around the debian and cc images - not sure what is extra in the cc image but its slightly larger - so lets use the debian image if we can (and afaict the c libs are the same) |
|
as its a pita to test the ci images locally i created a testing branch here #16269 |
|
Should I try other examples? all of them? |
no that is good i think if you revert all of the example stuff im happy for this to merge if you wish we could try the static distroless base image first |
|
Reverted |
|
Forgot about |
|
From my side, all set for merge. |
|
@phlax thank you for your assistance! Envoyproxy is a really cool thing. I hope will have more opportunities to contribute. Not able to merge: |
|
@phlax seems build failed. |
|
eek! ive pinged @lizan in the envoy-ci channel on slack - i reckon he will know how to resolve |
|
@oleksiyp dockerhub should be fixed now - the first image has been uploaded - you can see it here https://hub.docker.com/r/envoyproxy/envoy-distroless-dev/tags?page=1&ordering=last_updated i opened a couple of follow up bugs - for documentation (#16282 ), and deprecation of the alpine image here (#16275 ) which is basically fixing the examples that (mistakenly) use the alpine image as a base for backend service lmk if you want to take either of them |
* ci: Adding distroless image Signed-off-by: Oleksiy Pylypenko <[email protected]> Signed-off-by: Gokul Nair <[email protected]>
* ci: Adding distroless image Signed-off-by: Oleksiy Pylypenko <[email protected]> Signed-off-by: Gokul Nair <[email protected]>
Commit Message: ci: adding distroless image to Envoy CI pipeline
Additional Description:
In #16170 we came up to the conclusion that the best option is to add distroless based images.
I analyzed #15312 and came to the conclusion that it will take a lot of changes to add distroless images by using bazel's rules_docker. Instead of it using current CI pipeline to add distroless image is low hanging fruit. Conversion to rules_docker might be performed later.
Risk Level: Medium
Testing: Please guide what testing best to perform
Docs Changes: Please guide if there are any best location to document it
Release Notes: N/A
Platform Specific Features: N/A