Skip to content

Commit

Permalink
Don't pull the published container if we're in dev mode (#42)
Browse files Browse the repository at this point in the history
* don't pull the published container if we're in dev mode

* check inside updateJobRunner
  • Loading branch information
cpoile authored Sep 11, 2023
1 parent f72dfec commit d196e46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/docker/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func (s *JobService) Init(cfg job.ServiceConfig) error {
}

func (s *JobService) updateJobRunner(runner string) error {
if os.Getenv("DEV_MODE") == "true" {
runner = "calls-recorder:master"
}

ctx, cancel := context.WithTimeout(context.Background(), dockerRequestTimeout)
defer cancel()

Expand Down

0 comments on commit d196e46

Please sign in to comment.