Package io.micronaut.build.services
Class DockerService
- java.lang.Object
-
- io.micronaut.build.services.DockerService
-
@Singleton public class DockerService extends Object
Provides methods to work with Docker images- Since:
- 1.1
- Author:
- Álvaro Sánchez-Mariscal
-
-
Constructor Summary
Constructors Constructor Description DockerService(org.apache.maven.project.MavenProject mavenProject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
buildImage(com.github.dockerjava.api.command.BuildImageCmd builder)
com.github.dockerjava.api.command.BuildImageCmd
buildImageCmd()
com.github.dockerjava.api.command.BuildImageCmd
buildImageCmd(String dockerfileName)
File
copyFromContainer(String imageId, String containerPath)
File
loadDockerfileAsResource(String name)
-
-
-
Method Detail
-
buildImageCmd
public com.github.dockerjava.api.command.BuildImageCmd buildImageCmd(String dockerfileName) throws IOException
- Throws:
IOException
-
buildImageCmd
public com.github.dockerjava.api.command.BuildImageCmd buildImageCmd()
-
buildImage
public String buildImage(com.github.dockerjava.api.command.BuildImageCmd builder)
-
loadDockerfileAsResource
public File loadDockerfileAsResource(String name) throws IOException
- Throws:
IOException
-
-