diff --git a/pkg/project/batch.go b/pkg/project/batch.go index 227f82a93..dcb99f078 100644 --- a/pkg/project/batch.go +++ b/pkg/project/batch.go @@ -179,6 +179,9 @@ func (s *Batch) RunContainer(stop <-chan bool, updates chan<- ServiceRunUpdate, if goruntime.GOOS == "linux" { dockerHost := env.GetEnv("NITRIC_DOCKER_HOST", "172.17.0.1") + // FIXME: Skip dns resolution for now to allow nitric apps using deno to work on linux + // https://github.com/denoland/deno/issues/25927 + runtimeOptions.nitricHost = dockerHost.String() // setup host.docker.internal to route to host gateway // to access rpc server hosted by local CLI run hostConfig.ExtraHosts = []string{"host.docker.internal:" + dockerHost.String()} diff --git a/pkg/project/service.go b/pkg/project/service.go index 04346ea12..b956ea911 100644 --- a/pkg/project/service.go +++ b/pkg/project/service.go @@ -350,6 +350,9 @@ func (s *Service) RunContainer(stop <-chan bool, updates chan<- ServiceRunUpdate if goruntime.GOOS == "linux" { dockerHost := env.GetEnv("NITRIC_DOCKER_HOST", "172.17.0.1") + // FIXME: Skip dns resolution for now to allow nitric apps using deno to work on linux + // https://github.com/denoland/deno/issues/25927 + runtimeOptions.nitricHost = dockerHost.String() // setup host.docker.internal to route to host gateway // to access rpc server hosted by local CLI run hostConfig.ExtraHosts = []string{"host.docker.internal:" + dockerHost.String()}