Search in sources :

Example 1 with DockerArtifactHandler

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);
    }
}
Also used : DockerGenException(org.ballerinax.docker.generator.exceptions.DockerGenException) DockerArtifactHandler(org.ballerinax.docker.generator.DockerArtifactHandler) KubernetesPluginException(org.ballerinax.kubernetes.exceptions.KubernetesPluginException)

Example 2 with DockerArtifactHandler

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);
    }
}
Also used : DockerGenException(org.ballerinax.docker.generator.exceptions.DockerGenException) DockerArtifactHandler(org.ballerinax.docker.generator.DockerArtifactHandler) KubernetesPluginException(org.ballerinax.kubernetes.exceptions.KubernetesPluginException)

Aggregations

DockerArtifactHandler (org.ballerinax.docker.generator.DockerArtifactHandler)2 DockerGenException (org.ballerinax.docker.generator.exceptions.DockerGenException)2 KubernetesPluginException (org.ballerinax.kubernetes.exceptions.KubernetesPluginException)2