File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
main/java/org/testcontainers/containers
test/java/org/testcontainers/containers Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 20
20
*/
21
21
public class DockerMcpGatewayContainer extends GenericContainer <DockerMcpGatewayContainer > {
22
22
23
- private static final String DOCKER_AGENT_GATEWAY_IMAGE = "docker/agents_gateway " ;
23
+ private static final String DOCKER_MCP_GATEWAY_IMAGE = "docker/mcp-gateway " ;
24
24
25
- private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName .parse (DOCKER_AGENT_GATEWAY_IMAGE );
25
+ private static final String DOCKER_AGENTS_GATEWAY_IMAGE = "docker/agents_gateway" ;
26
+
27
+ private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName .parse (DOCKER_MCP_GATEWAY_IMAGE );
28
+
29
+ private static final DockerImageName DOCKER_AGENTS_IMAGE_NAME = DockerImageName .parse (DOCKER_AGENTS_GATEWAY_IMAGE );
26
30
27
31
private static final int DEFAULT_PORT = 8811 ;
28
32
@@ -40,7 +44,7 @@ public DockerMcpGatewayContainer(String dockerImageName) {
40
44
41
45
public DockerMcpGatewayContainer (DockerImageName dockerImageName ) {
42
46
super (dockerImageName );
43
- dockerImageName .assertCompatibleWith (DEFAULT_IMAGE_NAME );
47
+ dockerImageName .assertCompatibleWith (DEFAULT_IMAGE_NAME , DOCKER_AGENTS_IMAGE_NAME );
44
48
withExposedPorts (DEFAULT_PORT );
45
49
withFileSystemBind (DockerClientFactory .instance ().getRemoteDockerUnixSocketPath (), "/var/run/docker.sock" );
46
50
waitingFor (Wait .forLogMessage (".*Start sse server on port.*" , 1 ));
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class DockerMcpGatewayContainerTest {
10
10
11
11
@ Test
12
12
public void serviceSuccessfullyStarts () {
13
- try (DockerMcpGatewayContainer gateway = new DockerMcpGatewayContainer ("docker/agents_gateway:v2 " )) {
13
+ try (DockerMcpGatewayContainer gateway = new DockerMcpGatewayContainer ("docker/mcp-gateway:latest " )) {
14
14
gateway .start ();
15
15
16
16
assertThat (gateway .isRunning ()).isTrue ();
@@ -21,7 +21,7 @@ public void serviceSuccessfullyStarts() {
21
21
public void gatewayStartsWithServers () {
22
22
try (
23
23
// container {
24
- DockerMcpGatewayContainer gateway = new DockerMcpGatewayContainer ("docker/agents_gateway:v2 " )
24
+ DockerMcpGatewayContainer gateway = new DockerMcpGatewayContainer ("docker/mcp-gateway:latest " )
25
25
.withServer ("curl" , "curl" )
26
26
.withServer ("brave" , "brave_local_search" , "brave_web_search" )
27
27
.withServer ("github-official" , Collections .singletonList ("add_issue_comment" ))
You can’t perform that action at this time.
0 commit comments