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

org.testcontainers.images.builder.dockerfile.traits.EnvStatementTrait Maven / Gradle / Ivy

package org.testcontainers.images.builder.dockerfile.traits;

import org.testcontainers.images.builder.dockerfile.statement.KeyValuesStatement;

import java.util.Collections;
import java.util.Map;

public interface EnvStatementTrait & DockerfileBuilderTrait> {

    default SELF env(String key, String value) {
        return env(Collections.singletonMap(key, value));
    }

    default SELF env(Map entries) {
        return ((SELF) this).withStatement(new KeyValuesStatement("ENV", entries));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy