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 Stringgenerates the content of a dockerfile from a templateprotected abstract Filereads the template dockerfileprotected final FilegetDockerfileTemplate(DockerFileType dockerFileType) generates the content of a dockerfile from a templatereads the template dockerfilefinal voidgenerates the dockerfileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.winchesters.devopsify.service.technologies.GeneratedFile
writeFile
-
Constructor Details
-
DockerFile
public DockerFile()
-
-
Method Details
-
writeFile
generates the dockerfile- Specified by:
writeFilein 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:GeneratedFilegenerates the content of a dockerfile from a template- Specified by:
getFileContentin 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:GeneratedFilereads the template dockerfile- Specified by:
getFileTemplatein interfaceGeneratedFile- Returns:
- the dockerfile template
-
getDockerfileTemplate
- Parameters:
dockerFileType- the type of the template -- db - maven - react .. reads the template dockerfile- Returns:
- the dockerfile template
-