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

do not check mounts entering windows container studio #4668

Merged
merged 1 commit into from Feb 26, 2018

Conversation

mwrock
Copy link
Contributor

@mwrock mwrock commented Feb 24, 2018

Windows containers do not use shared drives for mounting local volumes so the check_mounts function provides no value when run in Windows container mode. Also, this incurs a docker run which takes much longer on Windows 10 hosts for windows containers (like ~ 20 seconds) so removing this check significantly speeds up the studio startup time.

Signed-off-by: mwrock matt@mattwrock.com

Signed-off-by: mwrock <matt@mattwrock.com>
@thesentinels
Copy link
Contributor

Thanks for the pull request! Here is what will happen next:

  1. Your PR will be reviewed by the maintainers
  2. If everything looks good, one of them will approve it, and your PR will be merged.

Thank you for contributing!

@mwrock mwrock self-assigned this Feb 24, 2018
@@ -197,9 +201,7 @@ where
cmd_args.push(vol.as_ref().into());
}

if !is_serving_windows_containers(docker_cmd) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was the removal of this check intentional? Is this related to mounts too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since this PR would not enter this function when using windows containers, this check would always be false

@raskchanky
Copy link
Contributor

Copy link
Collaborator

@reset reset left a comment

Choose a reason for hiding this comment

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

tenor-156934099

@mwrock
Copy link
Contributor Author

mwrock commented Feb 26, 2018

@thesentinels approve

@thesentinels
Copy link
Contributor

🤘 I am testing your branch against master before merging it. We do this to ensure that the master branch is never failing tests.

@thesentinels
Copy link
Contributor

:neckbeard: Travis CI has started testing this PR.

@thesentinels
Copy link
Contributor

💖 Travis CI reports this PR passed.

It always makes me feel nice when humans approve of one anothers work. I'm merging this PR now.

I just want you and the contributor to answer me one question:

gif-keyboard-3280869874741411265

@thesentinels thesentinels merged commit 4d8d4c9 into master Feb 26, 2018
@thesentinels thesentinels deleted the no_check_mount branch February 26, 2018 19:55
@eeyun eeyun added I-windows and removed P-windows labels Mar 6, 2018
@christophermaier christophermaier added Focus: Studio Related to the Habitat Studio (core/hab-studio) component Platform: Windows Deals with Windows-specific behavior Type: Chore Issues for general code and infrastructure maintenance and removed A-studio labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: Studio Related to the Habitat Studio (core/hab-studio) component Platform: Windows Deals with Windows-specific behavior Type: Chore Issues for general code and infrastructure maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants