LocalStack Dev Services container cannot connect to host network #1161
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
I'm leveraging the Quarkus Dev Services feature to start an EventBridge instance when launching my application via
mvn quarkus:dev
.The application exposes a REST endpoint which has been set up as API destination in EventBridge, it is associated with a rule so that it gets called when a certain event passes through.
So EventBridge runs in a container, the application on the host.
The problem is that the localstack container has no way to reach the host network, in
/etc/hosts
there isn't ahost.docker.internal
entry.I can't find a way to pass the
--add-host
flag either, it may be viable via theDOCKER_FLAGS
env variable but that cannot be specified on the quarkus extension.TestContainers allows to expose host ports to the container or to set a different network mode,
is this a missing functionality of the quarkus-extension? or did I overlook something?
The text was updated successfully, but these errors were encountered: