public class DockerHandler extends Object implements ArtifactHandler
Constructor and Description |
---|
DockerHandler(DockerModel dockerModel) |
Modifier and Type | Method and Description |
---|---|
void |
buildImage(DockerModel dockerModel,
String dockerDir)
Create docker image.
|
String |
generate()
Generate Dockerfile content.
|
void |
pushImage(DockerModel dockerModel)
Push docker image.
|
public DockerHandler(DockerModel dockerModel)
public void buildImage(DockerModel dockerModel, String dockerDir) throws InterruptedException, IOException, KubernetesPluginException
dockerModel
- dockerModel objectdockerDir
- dockerfile directoryInterruptedException
- When error with docker build processIOException
- When error with docker build processKubernetesPluginException
public void pushImage(DockerModel dockerModel) throws InterruptedException, IOException, KubernetesPluginException
dockerModel
- DockerModelInterruptedException
- When error with docker build processIOException
- When error with docker build processKubernetesPluginException
public String generate()
generate
in interface ArtifactHandler
Copyright © 2018 WSO2. All rights reserved.