From db73c928f38553708eea061fef28581b951791a6 Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Thu, 17 Dec 2020 11:57:37 +0100 Subject: [PATCH] Ensure image exist for run service Signed-off-by: Guillaume Tardif --- local/compose/run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/local/compose/run.go b/local/compose/run.go index b9d590f43..0f5e2564b 100644 --- a/local/compose/run.go +++ b/local/compose/run.go @@ -51,6 +51,9 @@ func (s *composeService) RunOneOffContainer(ctx context.Context, project *types. requestedService.Labels = requestedService.Labels.Add(slugLabel, slug) requestedService.Labels = requestedService.Labels.Add(oneoffLabel, "True") + if err := s.ensureImagesExists(ctx, project); err != nil { // all dependencies already checked, but might miss requestedService img + return err + } if err := s.waitDependencies(ctx, project, requestedService); err != nil { return err }