Skip to content

Force pull of images on make start-environment#8230

Merged
jsoriano merged 2 commits intoelastic:masterfrom
jsoriano:start-environment-pull
Sep 6, 2018
Merged

Force pull of images on make start-environment#8230
jsoriano merged 2 commits intoelastic:masterfrom
jsoriano:start-environment-pull

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented Sep 5, 2018

When using snapshots, image could be outdated, force pulling images before starting environment.

Ported from #8204

@jsoriano jsoriano added :Testing :Infra needs_backport PR is waiting to be backported to other branches. v6.3.3 review and removed needs_backport PR is waiting to be backported to other branches. v6.3.3 labels Sep 5, 2018
Comment thread libbeat/scripts/Makefile
# To use it for running the test, set ES_HOST and REDIS_HOST environment variable to the ip of your docker-machine.
.PHONY: start-environment
start-environment: stop-environment
${DOCKER_COMPOSE} pull --include-deps
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this will use the cached layers if they are available and identical?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it still reuses local layers.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I see build times increased some minutes... maybe this is normal if we were re-using images too much.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its ok as it gets us on the same page with travis. also if intermediary images used, the increase should only be once a day

@jsoriano jsoriano merged commit 51360e9 into elastic:master Sep 6, 2018
@jsoriano jsoriano deleted the start-environment-pull branch September 6, 2018 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants