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

safer example runner #13084

Closed
ronaldpetty opened this issue Sep 14, 2020 · 7 comments · Fixed by #13200
Closed

safer example runner #13084

ronaldpetty opened this issue Sep 14, 2020 · 7 comments · Fixed by #13200

Comments

@ronaldpetty
Copy link
Contributor

Title: safer example runner

Description:

I just used envoy/examples/verify-common.sh and during its cleanup it does a docker prune, which removes ALL stopped containers. I have dozens of containers in the stop state and use them for various unrelated activities. While I did read the script, I didn't put it together that "verify-...." was going to remove things it didn't own. I recommend injecting id information on these related containers and only delete them. Maybe via ENV, or something like that. If others think that is a good idea (or maybe just adding documentation or a feature gate on delete) I am open to implementing it.

@ronaldpetty ronaldpetty added the triage Issue requires triage label Sep 14, 2020
@mattklein123
Copy link
Member

cc @phlax

@mattklein123 mattklein123 added area/examples help wanted Needs help! and removed triage Issue requires triage labels Sep 14, 2020
@phlax
Copy link
Member

phlax commented Sep 14, 2020

hi @ronaldpetty apologies for this.

I originally wrapped this test in a docker-in-docker container partly for this reason.

the wrapper wasnt added to the ci pipeline - but im thinking to add at least some documentation to make it easy to run these tests in an isolated way

@ronaldpetty
Copy link
Contributor Author

ronaldpetty commented Sep 14, 2020 via email

@phlax
Copy link
Member

phlax commented Sep 14, 2020

Maybe close for now?

lets keep it open until i add the relevant docs

@phlax
Copy link
Member

phlax commented Sep 14, 2020

@ronaldpetty thinking about this further - im realising its an issue just running a single verify.sh script.

Im gonna PR so it prunes in ci as required, but not when you run individual tests

@ronaldpetty
Copy link
Contributor Author

ronaldpetty commented Sep 14, 2020 via email

@phlax
Copy link
Member

phlax commented Sep 15, 2020

after testing this further, it turns out that the prune isnt required at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants