-
Notifications
You must be signed in to change notification settings - Fork 318
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
Docker build script fixes #8685
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... but this is the least intrusive fix
Maybe, but wouldn't it be cleaner to just remove the --build-arg
lines instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I was trying at first as well, but it does not work as the variables are also used as part of version strings / tags like "${JAVA_VERSION}-jdk-${UBUNTU_VERSION}"
.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8685 +/- ##
============================================
+ Coverage 67.53% 67.85% +0.31%
Complexity 1165 1165
============================================
Files 245 244 -1
Lines 7772 7736 -36
Branches 867 865 -2
============================================
Hits 5249 5249
+ Misses 2164 2128 -36
Partials 359 359
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
361ff45
to
5792b47
Compare
This is a fixup for ae16d01. It somewhat takes the long way around, reading the variables from `versions.dockerfile` just to pass them in as build arguments again, but this is the least intrusive fix. Signed-off-by: Sebastian Schuberth <[email protected]>
This enables compatibility with the `--build-context` option as used by the `docker_build.sh` script. Also see [1]. [1]: https://codeberg.org/devthefuture/dockerfile-x/issues/4 Signed-off-by: Sebastian Schuberth <[email protected]>
5792b47
to
c996a2c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much correct. Docker doesn't have a unified way to get a general build arts by file environment, so this solution fix the local issue.
Please have a look at the individual commit messages for the details.