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

Refactor image builds #67

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open

Refactor image builds #67

wants to merge 1 commit into from

Conversation

mnaser
Copy link

@mnaser mnaser commented Jan 9, 2020

This change introduces multi-stage image builds where it uses
the upstream Golang image to build the project and then places
it in an empty, scratch container to run it inside.

This increases the security of the container significantly due
to the fact that you don't have an operating system alongside
it that you need to keep up to date. It also drives the size
of the image down.

This does introduce a small behaviour change in that you must
manually setup your arguments and you no longer automatically
have the configuration file auto-detected, but it's probably
better for users to explicitly configure things rather than
have it implicitly happen.

This change introduces multi-stage image builds where it uses
the upstream Golang image to build the project and then places
it in an empty, scratch container to run it inside.

This increases the security of the container significantly due
to the fact that you don't have an operating system alongside
it that you need to keep up to date.  It also drives the size
of the image down.

This does introduce a small behaviour change in that you must
manually setup your arguments and you no longer automatically
have the configuration file auto-detected, but it's probably
better for users to explicitly configure things rather than
have it implicitly happen.
moolex added a commit to uuland/mikrotik-exporter that referenced this pull request Apr 30, 2021
@ananthb ananthb mentioned this pull request Aug 10, 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.

1 participant