All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.maven.docker.config.handler.compose.DockerComposeConfiguration Maven / Gradle / Ivy

There is a newer version: 0.45.0
Show newest version
package io.fabric8.maven.docker.config.handler.compose;

import java.util.*;

public class DockerComposeConfiguration {

    private final String basedir;
    private final String composeFile;
    private final boolean ignoreBuild;
    public DockerComposeConfiguration(Map config) {
        basedir = config.containsKey("basedir") ? config.get("basedir") : "src/main/docker";
        composeFile = config.containsKey("composeFile") ? config.get("composeFile") : "docker-compose.yml";
        ignoreBuild = config.containsKey("ignoreBuild") ? Boolean.parseBoolean(config.get("ignoreBuilder")) : false;
    }

    String getBasedir() {
        return basedir;
    }

    String getComposeFile() {
        return composeFile;
    }

    public boolean isIgnoreBuild() {
        return ignoreBuild;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy