Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force pull of images on make start-environment #8230

Merged
merged 2 commits into from
Sep 6, 2018

Conversation

jsoriano
Copy link
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
@@ -377,6 +377,7 @@ build-image: write-environment
# 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
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
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
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
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