Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,16 @@
/**
* Testcontainers implementation of the Docker MCP Gateway container.
* <p>
* Supported images: {@code docker/agents_gateway}
* Supported images: {@code docker/mcp-gateway}
* <p>
* Exposed ports: 8811
*/
public class DockerMcpGatewayContainer extends GenericContainer<DockerMcpGatewayContainer> {

private static final String DOCKER_MCP_GATEWAY_IMAGE = "docker/mcp-gateway";

private static final String DOCKER_AGENTS_GATEWAY_IMAGE = "docker/agents_gateway";

private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName.parse(DOCKER_MCP_GATEWAY_IMAGE);

private static final DockerImageName DOCKER_AGENTS_IMAGE_NAME = DockerImageName.parse(DOCKER_AGENTS_GATEWAY_IMAGE);

private static final int DEFAULT_PORT = 8811;

private static final String SECRETS_PATH = "/testcontainers/app/secrets";
Expand All @@ -44,7 +40,7 @@ public DockerMcpGatewayContainer(String dockerImageName) {

public DockerMcpGatewayContainer(DockerImageName dockerImageName) {
super(dockerImageName);
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME, DOCKER_AGENTS_IMAGE_NAME);
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME);
withExposedPorts(DEFAULT_PORT);
withFileSystemBind(DockerClientFactory.instance().getRemoteDockerUnixSocketPath(), "/var/run/docker.sock");
waitingFor(Wait.forLogMessage(".*Start sse server on port.*", 1));
Expand Down
Loading