diff --git a/core/src/main/java/org/testcontainers/containers/AmbassadorContainer.java b/core/src/main/java/org/testcontainers/containers/AmbassadorContainer.java index d3730c32b15..c2d5cb5b40d 100644 --- a/core/src/main/java/org/testcontainers/containers/AmbassadorContainer.java +++ b/core/src/main/java/org/testcontainers/containers/AmbassadorContainer.java @@ -5,6 +5,7 @@ import lombok.Data; import lombok.EqualsAndHashCode; import org.testcontainers.containers.traits.LinkableContainer; +import org.testcontainers.utility.TestcontainersConfiguration; import java.util.List; @@ -24,7 +25,7 @@ public class AmbassadorContainer> extends private final int servicePort; public AmbassadorContainer(LinkableContainer otherContainer, String serviceName, int servicePort) { - super("richnorth/ambassador:latest"); + super(TestcontainersConfiguration.getInstance().ambassadorContainerImage); /* Use the unique 'identifierPrefix' (random compose project name) so that the ambassador can see diff --git a/core/src/main/java/org/testcontainers/containers/VncRecordingSidekickContainer.java b/core/src/main/java/org/testcontainers/containers/VncRecordingSidekickContainer.java index baef625cd0e..172eba70fc4 100644 --- a/core/src/main/java/org/testcontainers/containers/VncRecordingSidekickContainer.java +++ b/core/src/main/java/org/testcontainers/containers/VncRecordingSidekickContainer.java @@ -3,6 +3,7 @@ import com.github.dockerjava.api.command.InspectContainerResponse; import org.testcontainers.containers.traits.LinkableContainer; import org.testcontainers.containers.traits.VncService; +import org.testcontainers.utility.TestcontainersConfiguration; import java.io.File; import java.io.IOException; @@ -23,7 +24,7 @@ public class VncRecordingSidekickContainer +``` + +## Using custom utility images + +Testcontainers uses additional docker images under some modes of execution: + +* `richnorth/ambassador:latest`, which is a TCP proxy used to expose Docker Compose container ports outside of the compose network. +* `richnorth/vncrecorder:latest`, which is a VNC->FLV recorder, used for capturing Webdriver test videos. + +> *N.B.:* both these images use the 'latest' tag, which could potentially affect repeatability of tests and compatibility with Testcontainers _if the image is ever changed_. This is a [known issue](https://github.com/testcontainers/testcontainers-java/issues/276) which will be addressed in the future. The current 'latest' version of these images will never be changed until they are replaced by a new image altogether. + +If it is necessary to override these image names (e.g. when using a private registry), you should create a file named `testcontainers.properties` and place it on the classpath with the following content: + +```properties +ambassador.container.image=replacement image name here +vncrecorder.container.image=replacement image name here ``` \ No newline at end of file