Skip to content

[TESTING] Distroless testing - #16269

Closed
phlax wants to merge 5 commits into
envoyproxy:mainfrom
phlax:distroless--testing
Closed

phlax wants to merge 5 commits into
envoyproxy:mainfrom
phlax:distroless--testing

Conversation

@phlax

@phlax phlax commented May 2, 2021

Copy link
Copy Markdown
Member

Commit Message: [TESTING] please ignore
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

oleksiyp and others added 4 commits May 2, 2021 10:02
Signed-off-by: Oleksiy Pylypenko <[email protected]>
Signed-off-by: Oleksiy Pylypenko <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
@oleksiyp

oleksiyp commented May 2, 2021

Copy link
Copy Markdown
Contributor

Seems envoy is not able to find config file:

tls-inspector_1          | [2021-05-02 15:04:16.651][1][critical][main] [source/server/server.cc:113] error initializing configuration '/etc/envoy.yaml': unable to read file: /etc/envoy.yaml

@phlax

phlax commented May 2, 2021

Copy link
Copy Markdown
Member Author

Seems envoy is not able to find config file:

i think i know what the problem is - ill try and fix it shortly...

Signed-off-by: Ryan Northey <[email protected]>
@oleksiyp

oleksiyp commented May 2, 2021 •

Copy link
Copy Markdown
Contributor

Maybe worth checking static base image variation which is used in istio-proxy:

https://github.com/istio/istio/blob/master/docker/Dockerfile.distroless

@oleksiyp

oleksiyp commented May 2, 2021

Copy link
Copy Markdown
Contributor

@phlax

phlax commented May 2, 2021

Copy link
Copy Markdown
Member Author

Maybe worth checking static base image variation which is used in istio-proxy

yep - sounds like a good idea - in my quick testing it works in a minimal way - not sure if it will work with envoy - it has no c libs at all afaict

$ docker run --rm -it distroless
~ $ /busybox/ls /lib/
~ $

@oleksiyp

oleksiyp commented May 2, 2021

Copy link
Copy Markdown
Contributor

They have a fork of distroless with iptables: https://github.com/GoogleContainerTools/distroless/compare/main...istio:iptables and seems it is based on nonroot variation of the base image. Will try to play a bit with it in runtime to figure out either it is some compromise about security or there is some special trick.

@oleksiyp

oleksiyp commented May 2, 2021

Copy link
Copy Markdown
Contributor

So, not yet 100% sure as official docs don't specify this behaviour, but COPY is copying host permissions. Thus make sense to chmod everything that is COPYied in Dockerfile before running docker build. Also --chmod flag seems to be quite recent things and as well not documented.

@phlax

phlax commented May 2, 2021

Copy link
Copy Markdown
Member Author

Also --chmod flag seems to be quite recent things and as well not documented.

yep - not sure if it will work - it works in multistage builds so im optimistic

this is just for testing so i can resolve another way if it doesnt

waiting...

@phlax

phlax commented May 2, 2021

Copy link
Copy Markdown
Member Author

re the iptables image - it seems like its debian 9

@phlax

phlax commented May 2, 2021

Copy link
Copy Markdown
Member Author

chmod didnt work (arrgghh!)

as youve picked the changes from here to your pr ill close this

@phlax phlax closed this May 2, 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.

2 participants