Skip to content
Open
Show file tree
Hide file tree
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 @@ -4,6 +4,7 @@
import java.util.function.Supplier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.Testcontainers;
import org.testcontainers.containers.BindMode;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.output.Slf4jLogConsumer;
Expand Down Expand Up @@ -36,11 +37,11 @@ protected void configure() {
withClasspathResourceMapping(LAUNCH_ENVOY_SCRIPT, LAUNCH_ENVOY_SCRIPT_DEST, BindMode.READ_ONLY);
withClasspathResourceMapping(config, CONFIG_DEST, BindMode.READ_ONLY);

withExtraHost("host.docker.internal","host-gateway");

final Integer controlPlanePort = controlPlanePortSupplier.get();
Testcontainers.exposeHostPorts(controlPlanePort);
withCommand(
"/bin/bash", "/usr/local/bin/launch_envoy.sh",
Integer.toString(controlPlanePortSupplier.get()),
Integer.toString(controlPlanePort),
CONFIG_DEST,
"-l", "debug"
);
Expand Down
2 changes: 1 addition & 1 deletion server/src/test/resources/envoy/ads.v3.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static_resources:
- endpoint:
address:
socket_address:
address: host.docker.internal
address: host.testcontainers.internal
port_value: HOST_PORT
http2_protocol_options: {}
name: ads_cluster
2 changes: 1 addition & 1 deletion server/src/test/resources/envoy/ads.v3.delta.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static_resources:
- endpoint:
address:
socket_address:
address: host.docker.internal
address: host.testcontainers.internal
port_value: HOST_PORT
http2_protocol_options: {}
name: ads_cluster
2 changes: 1 addition & 1 deletion server/src/test/resources/envoy/xds.v3.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static_resources:
- endpoint:
address:
socket_address:
address: host.docker.internal
address: host.testcontainers.internal
port_value: HOST_PORT
http2_protocol_options: {}
name: xds_cluster
2 changes: 1 addition & 1 deletion server/src/test/resources/envoy/xds.v3.delta.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static_resources:
- endpoint:
address:
socket_address:
address: host.docker.internal
address: host.testcontainers.internal
port_value: HOST_PORT
http2_protocol_options: {}
name: xds_cluster