-
Notifications
You must be signed in to change notification settings - Fork 529
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
Fix #174: Build failure when trying to use Dockerfile for arguments in FROM #175
Conversation
Codecov Report
@@ Coverage Diff @@
## master #175 +/- ##
============================================
+ Coverage 37.38% 37.48% +0.10%
- Complexity 2455 2474 +19
============================================
Files 389 389
Lines 19103 19152 +49
Branches 2788 2799 +11
============================================
+ Hits 7141 7180 +39
- Misses 11114 11117 +3
- Partials 848 855 +7
Continue to review full report at Codecov.
|
Waiting on fabric8io/docker-maven-plugin#1299 to be merged in order to keep changes in both projects consistent. |
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.
just a tiny change requested. everything else LGTM
@@ -56,23 +56,40 @@ private DockerFileUtil() {} | |||
*/ | |||
public static List<String> extractBaseImages(File dockerFile, Properties properties) throws IOException { | |||
List<String[]> fromLines = extractLines(dockerFile, "FROM", properties); | |||
Map<String, String> args = extractArgs(extractLines(dockerFile, "ARG", properties)); | |||
Set<String> result = new LinkedHashSet<>(); | |||
Set<String> fromAlias = new HashSet<>(); | |||
for (String[] fromLine : fromLines) { | |||
if (fromLine.length > 1) { |
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.
this if condition feels redundant.
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.
Line 63
SonarCloud Quality Gate failed. 0 Bugs |
Why is this one closed? |
98a6e37
to
724e8f2
Compare
SonarCloud Quality Gate failed. 1 Bug 89.4% Coverage The version of Java (1.8.0_131) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11. |
Was this ported fabric8io/docker-maven-plugin#1373 too? or is it not applicable? |
ah, I still need to update this PR. Sorry, I will update it within this week |
724e8f2
to
1c94589
Compare
jkube-kit/build/api/src/main/java/org/eclipse/jkube/kit/build/api/helper/DockerFileUtil.java
Outdated
Show resolved
Hide resolved
jkube-kit/build/api/src/main/java/org/eclipse/jkube/kit/build/api/helper/DockerFileUtil.java
Outdated
Show resolved
Hide resolved
7355a25
to
50ec7f0
Compare
…r arguments in FROM Port of fabric8io/docker-maven-plugin#1299
50ec7f0
to
2b693e6
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs 84.0% Coverage The version of Java (1.8.0_131) you have used to run this analysis is deprecated and we will stop accepting it accepting it soon.Please update to at least Java 11. |
Fix #174
Ported PR fabric8io/docker-maven-plugin#1299