File tree 1 file changed +4
-2
lines changed
core/src/main/java/org/testcontainers/containers 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,20 @@ public class DockerModelRunnerContainer extends SocatContainer {
15
15
16
16
private static final String MODEL_RUNNER_ENDPOINT = "model-runner.docker.internal" ;
17
17
18
+ private static final int PORT = 80 ;
19
+
18
20
public DockerModelRunnerContainer (String image ) {
19
21
this (DockerImageName .parse (image ));
20
22
}
21
23
22
24
public DockerModelRunnerContainer (DockerImageName image ) {
23
25
super (image );
24
- withTarget (80 , MODEL_RUNNER_ENDPOINT );
26
+ withTarget (PORT , MODEL_RUNNER_ENDPOINT );
25
27
waitingFor (Wait .forHttp ("/" ).forResponsePredicate (res -> res .contains ("The service is running" )));
26
28
}
27
29
28
30
public String getBaseEndpoint () {
29
- return "http://" + getHost () + ":" + getMappedPort (80 );
31
+ return "http://" + getHost () + ":" + getMappedPort (PORT );
30
32
}
31
33
32
34
public String getOpenAIEndpoint () {
You can’t perform that action at this time.
0 commit comments