-
Notifications
You must be signed in to change notification settings - Fork 12
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
use distroless base image #55
Conversation
PR Analysis
PR Feedback
How to use
|
Summary:
|
Summary:
|
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Summary:
|
we don't fail more tests than before... so I guess it's fine |
Why not from scratch? |
distroless is scratch + passwd + ssl certificates you cannot copy things inside a container with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @matthyx for this great improvement!
Please, correct me if I'm wrong, but we should adjust the pipeline according to the new ARG
items provided (TARGETOS
, TARGETARCH
, image_version
), right?
ENTRYPOINT [ "./kube-host-sensor" ] | ||
ENV GO111MODULE=on CGO_ENABLED=0 | ||
WORKDIR /work | ||
ARG TARGETOS TARGETARCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we provide TARGETOS
and TARGETARCH
in the pipeline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, this is already provided by builds during the Docker build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, great, what about the image_version
instead?
|
||
COPY --from=builder /out/kube-host-sensor /usr/bin/kube-host-sensor | ||
|
||
ARG image_version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
TODO: Open a PR in the helm-chart |
|
Overview