@@ -13,8 +13,6 @@ class EnvoyContainer extends GenericContainer<EnvoyContainer> {
1313 private static final Logger LOGGER = LoggerFactory .getLogger (EnvoyContainer .class );
1414
1515 private static final String CONFIG_DEST = "/etc/envoy/envoy.yaml" ;
16- private static final String HOST_IP_SCRIPT = "docker/host_ip.sh" ;
17- private static final String HOST_IP_SCRIPT_DEST = "/usr/local/bin/host_ip.sh" ;
1816 private static final String LAUNCH_ENVOY_SCRIPT = "envoy/launch_envoy.sh" ;
1917 private static final String LAUNCH_ENVOY_SCRIPT_DEST = "/usr/local/bin/launch_envoy.sh" ;
2018
@@ -26,7 +24,7 @@ class EnvoyContainer extends GenericContainer<EnvoyContainer> {
2624 EnvoyContainer (String config , Supplier <Integer > controlPlanePortSupplier ) {
2725 // this version is changed automatically by /tools/update-sha.sh:57
2826 // if you change it make sure to reflect changes there
29- super ("envoyproxy/envoy-alpine- dev:af50070ee60866874b0a9383daf9364e884ded22" );
27+ super ("envoyproxy/envoy-dev:af50070ee60866874b0a9383daf9364e884ded22" );
3028 this .config = config ;
3129 this .controlPlanePortSupplier = controlPlanePortSupplier ;
3230 }
@@ -35,12 +33,13 @@ class EnvoyContainer extends GenericContainer<EnvoyContainer> {
3533 protected void configure () {
3634 super .configure ();
3735
38- withClasspathResourceMapping (HOST_IP_SCRIPT , HOST_IP_SCRIPT_DEST , BindMode .READ_ONLY );
3936 withClasspathResourceMapping (LAUNCH_ENVOY_SCRIPT , LAUNCH_ENVOY_SCRIPT_DEST , BindMode .READ_ONLY );
4037 withClasspathResourceMapping (config , CONFIG_DEST , BindMode .READ_ONLY );
4138
39+ withExtraHost ("host.docker.internal" ,"host-gateway" );
40+
4241 withCommand (
43- "/bin/sh " , "/usr/local/bin/launch_envoy.sh" ,
42+ "/bin/bash " , "/usr/local/bin/launch_envoy.sh" ,
4443 Integer .toString (controlPlanePortSupplier .get ()),
4544 CONFIG_DEST ,
4645 "-l" , "debug"
@@ -55,4 +54,5 @@ protected void containerIsStarting(InspectContainerResponse containerInfo) {
5554
5655 super .containerIsStarting (containerInfo );
5756 }
57+
5858}
0 commit comments