Skip to content

Commit

Permalink
debugpy ports in dockerfile - remove
Browse files Browse the repository at this point in the history
  • Loading branch information
pschroedl committed Aug 2, 2024
1 parent fb5da84 commit a07620e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion worker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

const containerModelDir = "/models"
const containerPort = "8000/tcp"
const pollingInterval = 500 * time.Millisecond
const pollingInterval = 5000 * time.Millisecond
const containerTimeout = 2 * time.Minute
const externalContainerTimeout = 2 * time.Minute
const optFlagsContainerTimeout = 5 * time.Minute
Expand Down Expand Up @@ -177,6 +177,7 @@ func (m *DockerManager) createContainer(ctx context.Context, pipeline string, mo
},
ExposedPorts: nat.PortSet{
containerPort: struct{}{},
"5678/tcp": struct{}{},
},
Labels: map[string]string{
containerCreatorLabel: containerCreator,
Expand Down Expand Up @@ -205,6 +206,12 @@ func (m *DockerManager) createContainer(ctx context.Context, pipeline string, mo
HostPort: containerHostPort,
},
},
"5678/tcp": []nat.PortBinding{
{
HostIP: "0.0.0.0",
HostPort: "5678",
},
},
},
}

Expand Down

0 comments on commit a07620e

Please sign in to comment.