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

Adding image build to workflow #198

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Adding image build to workflow #198

merged 1 commit into from
Jan 20, 2023

Conversation

samuelattwood
Copy link
Member

  • Updated GitHub workflow
  • Updated goreleaser config to generate Docker images
  • Updated Linux Dockerfile

Signed-off-by: Samuel Attwood sam@synadia.com

…ation.

Signed-off-by: Samuel Attwood <sam@synadia.com>
Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

RUN apk add --no-cache ca-certificates

ARG BINARY=prometheus-nats-exporter

FROM scratch

Choose a reason for hiding this comment

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

Opinions on using gcr.io/distroless/static-debian11 here? That's essentially what we are making with scratch

Copy link
Member

Choose a reason for hiding this comment

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

sounds good to me since that includes the certs

Choose a reason for hiding this comment

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

there's benefit to using same distro - for example @philpennock tracks alpine security updates etc.

Choose a reason for hiding this comment

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

I think the only things coming from debian in this image are CA Certificates and TZData. It has some other niceties, such as a /tmp directory and an /etc/passwd entry though.

Choose a reason for hiding this comment

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

Clearly this particular image has been working fine without those things though, so fine to just leave it the way it is too

Copy link

@caleblloyd caleblloyd left a comment

Choose a reason for hiding this comment

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

LGTM

@wallyqs wallyqs merged commit 998b863 into main Jan 20, 2023
@caleblloyd caleblloyd deleted the feature/auto-image-build branch January 20, 2023 17:58
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.

4 participants