This repository has been archived by the owner on Feb 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 95
Wait longer for vm to boot #270
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ func cmdUp() error { | |
fmt.Printf("\nWaiting for Docker daemon to start...\n") | ||
} | ||
|
||
time.Sleep(300 * time.Millisecond) | ||
time.Sleep(600 * time.Millisecond) | ||
socket := "" | ||
for i := 1; i < 30; i++ { | ||
print(".") | ||
|
@@ -113,7 +113,7 @@ func cmdUp() error { | |
if B2D.Verbose { | ||
fmt.Printf("Error requesting socket: %s\n", err) | ||
} | ||
time.Sleep(300 * time.Millisecond) | ||
time.Sleep(600 * time.Millisecond) | ||
} | ||
fmt.Printf("\nStarted.\n") | ||
|
||
|
@@ -128,7 +128,7 @@ func cmdUp() error { | |
} | ||
// Copying the certs here - someone might have have written a Windows API client. | ||
certPath, err := RequestCertsUsingSSH(m) | ||
if err != nil && B2D.Verbose { | ||
if err != nil { | ||
// These errors are not fatal | ||
fmt.Fprintf(os.Stderr, "Error copying Certificates: %s\n", err) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about adding: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll go ahead and add these text changes in master now that this is merged. Thanks @gmlewis ❤️ |
||
} | ||
|
@@ -172,7 +172,7 @@ func cmdShellInit() error { | |
} | ||
|
||
certPath, err := RequestCertsUsingSSH(m) | ||
if err != nil && B2D.Verbose { | ||
if err != nil { | ||
// These errors are not fatal | ||
fmt.Fprintf(os.Stderr, "Error copying Certificates: %s\n", err) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...and here too: |
||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a Windows-specific problem (just a guess)?
So now if there is a real problem with the VM, everyone will have to wait 18 seconds to find out about it instead of 9 seconds?
Instead, could we do something like:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is on OS X, not windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gmlewis yeah, this is because of the TLS certificate generation that now occurs on
boot2docker up
(which we then have to wait for so we can copy them back out of the VM to connect back in over TLS)