Search in sources :

Example 1 with FormatParameterReplacer

use of io.fabric8.maven.docker.util.FormatParameterReplacer in project docker-maven-plugin by fabric8io.

the class LogOutputSpecFactory method addPrefix.

private void addPrefix(LogOutputSpec.Builder builder, String logPrefix, ImageConfiguration imageConfig, String containerId) {
    String prefixFormat = logPrefix;
    if (prefixFormat == null) {
        prefixFormat = DEFAULT_PREFIX_FORMAT;
    }
    FormatParameterReplacer formatParameterReplacer = new FormatParameterReplacer(getPrefixFormatParameterLookups(imageConfig, containerId));
    builder.prefix(formatParameterReplacer.replace(prefixFormat));
}
Also used : FormatParameterReplacer(io.fabric8.maven.docker.util.FormatParameterReplacer)

Aggregations

FormatParameterReplacer (io.fabric8.maven.docker.util.FormatParameterReplacer)1