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

new docker image build setup #1484

Merged
merged 1 commit into from
Jun 21, 2021
Merged

new docker image build setup #1484

merged 1 commit into from
Jun 21, 2021

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Jun 15, 2021

Update to use new standard of downloading application from official release sources, including cryptographic verification.

Cleans up entrypoint and makes separate init process optional. Standardizing on a minimal Alpine Linux based image.

Note dumb-init was removed as it is not required to for consul-template, as it handles all the signaling properly, and docker has it built in so if a user wants it they can add it by running with --init. Shouldn't normally be necessary but might be useful if you have ill-behaved template commands.

Update to use new standard of downloading application from official
release sources, including cryptographic verification.

Cleans up entrypoint and makes separate init process optional.
Standardizing on a minimal Alpine Linux based image.

Note dumb-init was removed as it is not required to for consul-template,
as it handles all the signaling properly, and docker has it built in so
if a user wants it they can add it by running with `--init`. Shouldn't
normally be necessary but might be useful if you have ill-behaved
template commands.
@eikenb eikenb added this to the 0.26.1 milestone Jun 15, 2021
@eikenb eikenb requested a review from a team June 15, 2021 21:31
@eikenb
Copy link
Contributor Author

eikenb commented Jun 15, 2021

See #1481 for some context.

Copy link
Contributor

@findkim findkim left a comment

Choose a reason for hiding this comment

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

This looks like a solid and slim replacement of what's being removed in #1483

Comment on lines +36 to +37
COPY fetch-n-verify.sh docker-entrypoint.sh /
RUN /fetch-n-verify.sh # removes self when done
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this new approach to download the official released binary instead of building from source. Separates the dockerfile from the release process and the bulkiness of building from source.

@eikenb eikenb merged commit 435a22d into master Jun 21, 2021
@eikenb eikenb deleted the new-docker-image branch June 21, 2021 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants