Class DockerImage
- java.lang.Object
-
- io.patriot_framework.network_simulator.docker.image.docker.DockerImage
-
-
Constructor Summary
Constructors Constructor Description DockerImage(DockerManager dockerManager)
Instantiates a new Docker image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildAppImage(Set<String> tag)
void
buildImage(Set<String> tag, String path)
Method provides image building and selecting right path for resource files.void
buildRouterImage(Set<String> tag)
void
deleteImage(String imageTag)
Delete image.void
deleteImage(Set<String> tags)
Delete image.
-
-
-
Constructor Detail
-
DockerImage
public DockerImage(DockerManager dockerManager)
Instantiates a new Docker image.- Parameters:
dockerManager
- the docker manager
-
-
Method Detail
-
buildImage
public void buildImage(Set<String> tag, String path)
Method provides image building and selecting right path for resource files.- Specified by:
buildImage
in interfaceImage
- Parameters:
tag
- Set of image tagspath
- Path for dockerfile
-
buildRouterImage
public void buildRouterImage(Set<String> tag) throws IOException
- Throws:
IOException
-
buildAppImage
public void buildAppImage(Set<String> tag) throws IOException
- Throws:
IOException
-
deleteImage
public void deleteImage(Set<String> tags)
Description copied from interface:Image
Delete image.- Specified by:
deleteImage
in interfaceImage
- Parameters:
tags
- the tags
-
deleteImage
public void deleteImage(String imageTag)
Delete image.- Parameters:
imageTag
- the image tag
-
-