-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
closes #2 Starting services with docker-compose #28
closes #2 Starting services with docker-compose #28
Conversation
b13ab80
to
b23c2ac
Compare
I will test it. |
Ok, thanks. I expect some problems with order of containers startup. If you encounter any problem, please follow the following steps:
Maybe I should add it to README. |
@mszarlinski I've checkout your docker-compose branch then I've executed the
After having updating the docker-maven-plugin to the latest version 0.4.13 the build is passing. |
Just a few remark: maven version is hardcoded into the Dockerfile:
Maybe could we use joker? |
I've got a lot of error even if I manually check config-server and discovery-server startup. |
Thanks for advice, I will try to fix it with https://github.com/vishnubob/wait-for-it |
@mszarlinski The docker.plugin.version 0.3.258 is very old and do not work on macosx. Please upgrade to the last one. |
b885ee2
to
b427983
Compare
@arey containers startup has been fixed with wait-for-it.sh |
I've got timeout at startup even though I may ping my config server http://localhost:8888/info
I've tried to set timeout to zero (no timeout) and all services are waiting config server availability. I think we also have to increase a bit the default timeout (15 seconds) because all containers timeout started from the
Moreover, the Dockerfile of the Tracing Server has duplicated lines:
|
I've pushed a fix and containers are starting properly. Could you please investigate missing traces in |
Default timeout (15 seconds) is still there. I think we may increase it to 1mn. Don't you?
|
You are right. I thought waiting is done in a loop, but it is not true for timeout>0. |
I've started 3 times
|
On tracing-server startup, I've got the following error:
|
Unfortunately, I am unable to reproduce any of reported issues. Code 137 stands for |
In order micro-services could reach the tracing-server, I think you have to add a link to the tracing-server (and maybe a depends on?):
In this way, Docker compose will open a network route between the tracing server and each microservice. |
I will check that. |
Zipkin tracing doesn't work even when starting services without Docker, so this is a bug not related to the Docker configuration. Should I open separate issue for that? |
Of course, if tracing server does not work without Docker, we could open a new issue.
I don't know if we could use joker or not in Dockerfile. If not, we could customize the Maven |
Nice, will look into that as well! |
By debugging what happen with the tracing server, I've saw that model update/save logs have been removed by the commit: 769c229
|
I've found why zipkin did not receive any traces.
|
I've added |
Finally I managed to setup a Docker configuration, so that the entire application can be started with docker-compose. I will publish images to docker hub in a couple days, so they will be available without a need of building them locally before application startup.
Please review @arey @ryanjbaxter