Class DockerFile
java.lang.Object
com.winchesters.devopsify.service.technologies.docker.dockerfile.DockerFile
- All Implemented Interfaces:
GeneratedFile
- Direct Known Subclasses:
BackendDockerFile
,DataBaseDockerFile
,FrontEndDockerFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
generates the content of a dockerfile from a templateprotected abstract File
reads the template dockerfileprotected final File
getDockerfileTemplate
(DockerFileType dockerFileType) generates the content of a dockerfile from a templatereads the template dockerfilefinal void
generates the dockerfileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.winchesters.devopsify.service.technologies.GeneratedFile
writeFile
-
Constructor Details
-
DockerFile
public DockerFile()
-
-
Method Details
-
writeFile
generates the dockerfile- Specified by:
writeFile
in interfaceGeneratedFile
- Parameters:
path
- full path -- filename included- Throws:
IOException
-
getDockerfileContent
generates the content of a dockerfile from a template- Returns:
- a string containing the dockerfile content
- Throws:
IOException
- when io exception occurs
-
getFileContent
Description copied from interface:GeneratedFile
generates the content of a dockerfile from a template- Specified by:
getFileContent
in interfaceGeneratedFile
- Returns:
- a string containing the dockerfile content
- Throws:
IOException
- when io exception occurs
-
getDockerfileTemplate
reads the template dockerfile- Returns:
- the dockerfile template
-
getFileTemplate
Description copied from interface:GeneratedFile
reads the template dockerfile- Specified by:
getFileTemplate
in interfaceGeneratedFile
- Returns:
- the dockerfile template
-
getDockerfileTemplate
- Parameters:
dockerFileType
- the type of the template -- db - maven - react .. reads the template dockerfile- Returns:
- the dockerfile template
-