Class DockerRunCmd
- java.lang.Object
-
- io.patriot_framework.network_simulator.docker.image.docker.builder.parts.DockerRunCmd
-
- All Implemented Interfaces:
DockerFilePart
public class DockerRunCmd extends Object implements DockerFilePart
The type Run docker file part.
-
-
Constructor Summary
Constructors Constructor Description DockerRunCmd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setRequest(String plainLine)
Prepare request for Dockerfile translation.void
setRequest(List<String> commands)
Prepare specific RUN request from command/s for Dockerfile translation.String
translate()
Translate request for specific Dockerfile command line.
-
-
-
Method Detail
-
setRequest
public void setRequest(String plainLine)
Description copied from interface:DockerFilePart
Prepare request for Dockerfile translation.- Specified by:
setRequest
in interfaceDockerFilePart
- Parameters:
plainLine
- the plain line
-
setRequest
public void setRequest(List<String> commands)
Prepare specific RUN request from command/s for Dockerfile translation.- Parameters:
commands
- the commands
-
translate
public String translate()
Description copied from interface:DockerFilePart
Translate request for specific Dockerfile command line.- Specified by:
translate
in interfaceDockerFilePart
- Returns:
- the string
-
-