public class VertxGenerator extends JavaExecGenerator
Then main part of creating the base image is taken java-exec generator.
It detects whether or not it's a Vert.x project by looking if there is the vertx-core dependency associated by the Maven Shader Plugin or if the project use the Vert.x Maven Plugin. To avoid the issue to write file in the current working directory the `cacheDirBase` is configured to `/tmp`. When a cluster manager is detected in the classpath, `-cluster` is automatically appended to the command line. To avoid DNS resolution issue, the async DNS resolver is disabled (falling back to the regular Java resolver) If vertx-dropwizard-metrics is in the classpath, the metrics are enabled and the JMX export is also enabled.
JavaExecGenerator.Config
log
Constructor and Description |
---|
VertxGenerator(GeneratorContext context) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
extractPorts() |
protected Map<String,String> |
getEnv(boolean prePackagePhase) |
protected List<String> |
getExtraJavaOptions() |
boolean |
isApplicable(List<io.fabric8.maven.docker.config.ImageConfiguration> configs) |
protected boolean |
isFatJar() |
addAssembly, addPortIfValid, createAssembly, customize, detectFatJar, hasMainClass
addFrom, addLatestTagIfSnapshot, getAlias, getConfig, getConfig, getConfigWithFallback, getContext, getFromAsConfigured, getImageName, getName, getProject, getRegistry, shouldAddImageConfiguration
public VertxGenerator(GeneratorContext context)
public boolean isApplicable(List<io.fabric8.maven.docker.config.ImageConfiguration> configs) throws org.apache.maven.plugin.MojoExecutionException
isApplicable
in interface Generator
isApplicable
in class JavaExecGenerator
org.apache.maven.plugin.MojoExecutionException
protected List<String> getExtraJavaOptions()
getExtraJavaOptions
in class JavaExecGenerator
protected Map<String,String> getEnv(boolean prePackagePhase) throws org.apache.maven.plugin.MojoExecutionException
getEnv
in class JavaExecGenerator
org.apache.maven.plugin.MojoExecutionException
protected boolean isFatJar() throws org.apache.maven.plugin.MojoExecutionException
isFatJar
in class JavaExecGenerator
org.apache.maven.plugin.MojoExecutionException
protected List<String> extractPorts()
extractPorts
in class JavaExecGenerator
Copyright © 2020. All rights reserved.