Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1330 from vania-pooh/master
Browse files Browse the repository at this point in the history
Working with recent Firefox images
  • Loading branch information
vania-pooh authored Apr 11, 2023
2 parents 2544fa5 + 67eb972 commit e0cfe2f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: ~1.20
go-version: ~1.20.3

- uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: ~1.20
go-version: ~1.20.3

- uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: ~1.20
go-version: ~1.20.3

- uses: actions/cache@v3
with:
Expand Down
20 changes: 12 additions & 8 deletions service/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,18 @@ func (d *Docker) StartWithCancel() (*StartedService, error) {
}
cl := d.Client
env := getEnv(d.ServiceBase, d.Caps)
cfg := &ctr.Config{
Image: image.(string),
Env: env,
ExposedPorts: portConfig.ExposedPorts,
Labels: getLabels(d.Service, d.Caps),
}
hn := getContainerHostname(d.Caps)
if hn != "" {
cfg.Hostname = hn
}
container, err := cl.ContainerCreate(ctx,
&ctr.Config{
Hostname: getContainerHostname(d.Caps),
Image: image.(string),
Env: env,
ExposedPorts: portConfig.ExposedPorts,
Labels: getLabels(d.Service, d.Caps),
},
cfg,
&hostConfig,
&network.NetworkingConfig{}, nil, "")
if err != nil {
Expand Down Expand Up @@ -405,7 +409,7 @@ func getContainerHostname(caps session.Caps) string {
if caps.ContainerHostname != "" {
return caps.ContainerHostname
}
return "localhost"
return ""
}

func getExtraHosts(service *config.Browser, caps session.Caps) []string {
Expand Down

0 comments on commit e0cfe2f

Please sign in to comment.