Class DockerImage
- java.lang.Object
-
- org.hibernate.reactive.it.verticle.DockerImage
-
public final class DockerImage extends Object
A utility class with methods to generate aDockerImageNamefor Testcontainers.Testcontainers might not work if the image required is available in multiple different registries (for example when using podman instead of docker). These methods make sure to pick a registry as default.
-
-
Constructor Summary
Constructors Constructor Description DockerImage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.testcontainers.utility.DockerImageNamefromDockerfile(String databaseName)Extract the image name and version from the first FROM instruction in the Dockerfile.static org.testcontainers.utility.DockerImageNameimageName(String registry, String image, String version)
-
-
-
Method Detail
-
fromDockerfile
public static org.testcontainers.utility.DockerImageName fromDockerfile(String databaseName)
Extract the image name and version from the first FROM instruction in the Dockerfile. Note that everything else is ignored.
-
-