-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Change the default base images from Distroless in Jib build plugins #3124
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3124 +/- ##
============================================
+ Coverage 71.18% 71.24% +0.05%
+ Complexity 2331 2325 -6
============================================
Files 279 279
Lines 9846 9834 -12
Branches 990 976 -14
============================================
- Hits 7009 7006 -3
Misses 2491 2491
+ Partials 346 337 -9
Continue to review full report at Codecov.
|
...on/src/main/java/com/google/cloud/tools/jib/plugins/common/PluginConfigurationProcessor.java
Show resolved
Hide resolved
...ava/com/google/cloud/tools/jib/plugins/common/IncompatibleBaseImageJavaVersionException.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java
Outdated
Show resolved
Hide resolved
...on/src/main/java/com/google/cloud/tools/jib/plugins/common/PluginConfigurationProcessor.java
Show resolved
Hide resolved
Adding the |
Need to update CHANGELOG. When released, a lot of doc updates too. |
@@ -588,7 +589,7 @@ static JavaContainerBuilder getJavaContainerBuilderWithBaseImage( | |||
"mainClass, extraClasspath, jvmFlags, and expandClasspathDependencies " | |||
+ "are ignored for WAR projects")); | |||
} | |||
return null; | |||
return Arrays.asList("java", "-jar", "/usr/local/jetty/start.jar"); |
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.
FTR: it was wrong to return this when a custom base image is specified. The issue is fixed later in #3185.
NOTE: this PR is to merge the changes into the feature branchfeature-branch-default-base-images
. We are going to maintain the feature branch and regularly sync it with the main branch for a while.The changes are on top of #3123.
adoptopenjdk:8-jre
andadoptopenjdk:11-jre
.jetty
.java -jar /user/local/jetty/start.jar
. The idea is from Unnecessary overwrites of directories, resulting changes to owners and permissions #1270 (comment).