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, JavaExecGenerator.JDKJAVA_OPTIONS, JOLOKIA_PORT_DEFAULT, PROMETHEUS_PORT_DEFAULT| Constructor and Description |
|---|
VertxGenerator(org.eclipse.jkube.generator.api.GeneratorContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
getEnv(boolean prePackagePhase) |
protected List<String> |
getExtraJavaOptions() |
protected org.eclipse.jkube.kit.config.image.build.BuildConfiguration.BuildConfigurationBuilder |
initImageBuildConfiguration(boolean prePackagePhase) |
boolean |
isApplicable(List<org.eclipse.jkube.kit.config.image.ImageConfiguration> configs) |
protected boolean |
isFatJar() |
addAdditionalFiles, createAssembly, createFileSet, customize, detectFatJar, getBuildEntryPoint, getBuildWorkdir, getDefaultJolokiaPort, getDefaultPrometheusPort, getDefaultWebPort, hasMainClass, isPortValidaddFrom, addLatestTagIfSnapshot, addSchemaLabels, addTagsFromConfig, getAlias, getConfig, getConfig, getConfigWithFallback, getContext, getFromAsConfigured, getGeneratorConfig, getImageName, getName, getProject, getRegistry, shouldAddGeneratedImageConfigurationpublic VertxGenerator(org.eclipse.jkube.generator.api.GeneratorContext context)
public boolean isApplicable(List<org.eclipse.jkube.kit.config.image.ImageConfiguration> configs)
isApplicable in interface org.eclipse.jkube.generator.api.GeneratorisApplicable in class JavaExecGeneratorprotected List<String> getExtraJavaOptions()
getExtraJavaOptions in class JavaExecGeneratorprotected Map<String,String> getEnv(boolean prePackagePhase)
getEnv in class JavaExecGeneratorprotected boolean isFatJar()
isFatJar in class JavaExecGeneratorprotected org.eclipse.jkube.kit.config.image.build.BuildConfiguration.BuildConfigurationBuilder initImageBuildConfiguration(boolean prePackagePhase)
initImageBuildConfiguration in class JavaExecGeneratorCopyright © 2024. All rights reserved.