From 90c14a02ae576a422664078786a9a43b4bf12ddb Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Mon, 27 Nov 2017 18:30:16 +0300 Subject: [PATCH] Pulling video recorder image only once (fixes #106) --- selenoid/docker.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selenoid/docker.go b/selenoid/docker.go index 3d8c17f..3a71a75 100644 --- a/selenoid/docker.go +++ b/selenoid/docker.go @@ -279,7 +279,6 @@ func (c *DockerConfigurator) createConfig() SelenoidConfig { pulledTags := tags if c.DownloadNeeded { pulledTags = c.pullImages(image, tags) - c.pullVideoRecorderImage() } else if c.LastVersions > 0 && c.LastVersions <= len(tags) { pulledTags = tags[:c.LastVersions] } @@ -288,6 +287,9 @@ func (c *DockerConfigurator) createConfig() SelenoidConfig { browsers[browserName] = c.createVersions(browserName, image, pulledTags) } } + if c.DownloadNeeded { + c.pullVideoRecorderImage() + } return browsers }