Refactored to a set of install scripts to avoid adding further complexity to the base Dockerfile and make it easier to disable tools #385
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactored the
Dockerfile.base
out into a set of scripts that install the various tools in mostly the same way, just in a more maintainable and legible way. For my purposes the motivation was to make it easier to strip things out and create a minimal image. I've also changed a few things such as the removal oflsb-release
, which seemed unnecessary, mainly due to it simplifying the refactoring and to avoid a Python dependency if its not otherwise required. I've tried to make the refactoring steps somewhat easier to follow / diffable via the various commits to make it easier to review.It does a few less calls to
apt update
given the up-front sources configuration, and so is a touch faster, but it's not significant (a few 10s of seconds on my machine).I've tested this and for my purposes it works, though I'm not using many of the tools that are installed in this image.
Somewhat related to #380.