org.testcontainers.images.builder.dockerfile.traits.FromStatementTrait Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testcontainers Show documentation
Show all versions of testcontainers Show documentation
Isolated container management for Java code testing
package org.testcontainers.images.builder.dockerfile.traits;
import org.testcontainers.images.builder.dockerfile.statement.SingleArgumentStatement;
import org.testcontainers.utility.DockerImageName;
public interface FromStatementTrait & DockerfileBuilderTrait> {
default SELF from(String dockerImageName) {
DockerImageName.parse(dockerImageName).assertValid();
return ((SELF) this).withStatement(new SingleArgumentStatement("FROM", dockerImageName));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy