Repository navigation
Dockerfile: drop git and g++, pass VERSION to make - #271
Merged
Merged
Conversation
git was only there for `git describe`, which can't work in the build stage since only src/ is copied in, so pactester in the image reported an empty version. Pass the existing VERSION build arg to make instead. Dropping git also drops its perl dependency, whose packages have been intermittently 404ing on security.ubuntu.com and failing the amd64 image build. g++ isn't needed (everything is C); install without recommends and add libc6-dev explicitly.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



The amd64 Docker image build has been failing intermittently because
security.ubuntu.comreturns 404 forperl_5.40.1-7ubuntu0.4and related packages (runs 42767683830 and the first attempt of 42771512584). Perl comes in only as a dependency ofgit.gitisn't needed. The build stage copies in onlysrc/, sogit describecan't work there, and as a resultpactester -vin the published image prints an empty version.Changes:
gitandg++; everything is C. Install with--no-install-recommends, addinglibc6-dev(only recommended by gcc) explicitly. The build-stage install goes from pulling perl to 37 packages with no perl.VERSIONbuild arg tomake pactester.Testing:
docker build --build-arg VERSION=v1.5.4 .builds locally (amd64).pactester -vin the image printsv1.5.4, and-p <pac> -u <url>returns the expected proxy.mainand on tags.