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

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

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

import org.testcontainers.images.builder.dockerfile.statement.MultiArgsStatement;
import org.testcontainers.images.builder.dockerfile.statement.SingleArgumentStatement;

public interface RunStatementTrait & DockerfileBuilderTrait> {

    default SELF run(String... commandParts) {
        return ((SELF) this).withStatement(new MultiArgsStatement("RUN", commandParts));
    }

    default SELF run(String command) {
        return ((SELF) this).withStatement(new SingleArgumentStatement("RUN", command));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy