use of org.ballerinax.docker.generator.DockerArtifactHandler in project kubernetes by ballerinax.
the class DockerHandler method createArtifacts.
@Override
public void createArtifacts() throws KubernetesPluginException {
try {
// Generate docker artifacts
DockerArtifactHandler dockerArtifactHandler = new DockerArtifactHandler(dataHolder.getDockerModel());
OUT.println();
dockerArtifactHandler.createArtifacts(OUT, "\t@kubernetes:Docker \t\t\t", dataHolder.getUberJarPath(), dataHolder.getDockerArtifactOutputPath());
} catch (DockerGenException e) {
throw new KubernetesPluginException(e.getMessage(), e);
}
}
use of org.ballerinax.docker.generator.DockerArtifactHandler in project kubernetes by ballerinax.
the class KnativeDockerHandler method createArtifacts.
@Override
public void createArtifacts() throws KubernetesPluginException {
try {
// Generate docker artifacts
DockerArtifactHandler dockerArtifactHandler = new DockerArtifactHandler(knativeDataHolder.getDockerModel());
OUT.println();
dockerArtifactHandler.createArtifacts(OUT, "\t@knative:Docker \t\t\t", knativeDataHolder.getUberJarPath(), knativeDataHolder.getDockerArtifactOutputPath());
} catch (DockerGenException e) {
throw new KubernetesPluginException(e.getMessage(), e);
}
}
Aggregations