Skip to content

Commit

Permalink
Log the time taken to initialize the Keycloak container
Browse files Browse the repository at this point in the history
  • Loading branch information
wscalf committed Aug 15, 2024
1 parent d0ce8c6 commit 2c059c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/kesselContainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ func CreateKesselAPIContainer(logger log.Logger) (*LocalKesselContainer, error)
NetworkID: network.ID,
}

start := time.Now()
kcresource, err := pool.RunWithOptions(options, func(config *docker.HostConfig) {
config.NetworkMode = "bridge"
config.AutoRemove = true
config.RestartPolicy = docker.RestartPolicy{Name: "no"}
})
log.Infof("Time spent starting Keycloak container: %v", time.Since(start))
if err != nil {
log.Fatalf("Could not start keycloak resource: %s", err)
}
Expand Down

0 comments on commit 2c059c3

Please sign in to comment.