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

Commit

Permalink
Passing cm environment variables to started Selenoid container (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Jun 20, 2017
1 parent 4070352 commit 9a04171
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions selenoid/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (
"strconv"
"strings"
"time"
"os"

. "vbom.ml/util/sortorder"
)

Expand Down Expand Up @@ -395,9 +397,8 @@ func (c *DockerConfigurator) Start() error {
if image == nil {
return errors.New("Selenoid image is not downloaded: this is probably a bug")
}
env := []string{
fmt.Sprintf("TZ=%s", time.Local),
}
env := os.Environ()
env = append(env, fmt.Sprintf("TZ=%s", time.Local))
portString := strconv.Itoa(selenoidContainerPort)
port, err := nat.NewPort("tcp", portString)
if err != nil {
Expand Down

0 comments on commit 9a04171

Please sign in to comment.