Conversation
Closes kolide#15
zwass
left a comment
There was a problem hiding this comment.
This change appears to cause the script to exit when we wait for MySQL to accept connections. Repros consistently for me if I do ./demo.sh reset && ./demo.sh up
|
Trying to figure it out since I'll give it some thought and see if I can come up with a strategy. One way we could achieve this would be to move the for loop into a script which runs in the container, instead of initializing a new one. That way it will exit 0 when it finally connects, or exit 1 if 50 attempts failed. |
|
Is the current strategy of manually handling the exit not sufficient? I am also concerned that |
|
The reason the error is not printed is because we pipe the docker output to > /dev/null IMO it's important to close #15, I've run into a few cases already where the port is being used(mostly because I test this set up over and over in a new folder) and the experience is pretty poor. The loop doesn't handle SIGINT well, so hitting CTRL+C doesn't help. As far as how |
|
FWIW I usually handle this by setting |
Closes #15