-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
Improve bin/start and remove backslashes #331
Conversation
9efdf0a
to
c0b43cf
Compare
c0b43cf
to
acebb74
Compare
Hi @rangerz - going to reopen this to keep visibility. Should I implement the healthcheck script above? |
Also, I can still bring in the backticks to $() change. |
Hi @rangerz -- circling back around to this ticket. I won't merge this in yet, as you mentioned another solution could be more elegant. Let me know your thoughts, I did update this PR with latest from upstream just so we can easily re-test this if needed. |
Hi @markshust, It may use And then we can remove the I will work on it. |
Thanks @rangerz. FYI noticed some conflicts on the open PR after merged a bunch of stuff the last couple days. |
@markshust I think we can close this pull request. If anything need to keep any change, just create another one for it. |
Description
Use
$(...)
(new style) to replace`
backslashes (old style) because this linkImprove
bin/start
to wait for all services of containers to be ready.No need the sleep any more
sleep 5 #Ensure containers are started...
The concept is the same with #326 (Check Elasticsearch connection before setup:install)
I think the checker put to
bin/start
will be more fit, and also extend more services, such as nginx, mysql, redis, and rabbitmqThe checker also scans service ports to be available before docker start, and scan allocated ports by services after docker start.
If service ports are already allocated,
bin/start
will appear below error message.bin/start error for allocated port
How to verify:
bin/start
andbin/restart
bin/xdebug enable
andbin/xdebug disable
Any concern please let me know, I will revise them.