Skip to content
Merged
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
3 changes: 3 additions & 0 deletions pkg/project/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down
3 changes: 3 additions & 0 deletions pkg/project/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down
Loading