public class DockerFileUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
extractBaseImage(File dockerFile,
Properties properties,
String filter)
Extract the base image from a dockerfile.
|
static List<String[]> |
extractLines(File dockerFile,
String keyword,
Properties props,
String filter)
Extract all lines containing the given keyword
|
static String |
interpolate(File dockerFile,
Properties properties,
String filter)
Interpolate a docker file with the given properties and filter
|
public static String extractBaseImage(File dockerFile, Properties properties, String filter) throws IOException
FROM is
taken.dockerFile - file from where to extract the base imageproperties - holding values used for interpolationfilter - @return the base image name or null if none is found.IOExceptionpublic static List<String[]> extractLines(File dockerFile, String keyword, Properties props, String filter) throws IOException
dockerFile - dockerfile to examinekeyword - keyword to extract the lines forIOExceptionpublic static String interpolate(File dockerFile, Properties properties, String filter) throws IOException
dockerFile - docker file to interpolateproperties - properties to replacefilter - filter holding delimetersIOExceptionCopyright © 2017. All rights reserved.