{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3029","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3029/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3029/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3029/events","html_url":"https://github.com/jhipster/generator-jhipster/pull/3029","id":137182529,"number":3029,"title":"Containerize microservice and gateway applications","user":{"login":"pascalgrimaud","id":9156882,"avatar_url":"https://avatars.githubusercontent.com/u/9156882?v=3","gravatar_id":"","url":"https://api.github.com/users/pascalgrimaud","html_url":"https://github.com/pascalgrimaud","followers_url":"https://api.github.com/users/pascalgrimaud/followers","following_url":"https://api.github.com/users/pascalgrimaud/following{/other_user}","gists_url":"https://api.github.com/users/pascalgrimaud/gists{/gist_id}","starred_url":"https://api.github.com/users/pascalgrimaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascalgrimaud/subscriptions","organizations_url":"https://api.github.com/users/pascalgrimaud/orgs","repos_url":"https://api.github.com/users/pascalgrimaud/repos","events_url":"https://api.github.com/users/pascalgrimaud/events{/privacy}","received_events_url":"https://api.github.com/users/pascalgrimaud/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/feature%20request","name":"feature request","color":"0052cc"},{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/JH%203.0","name":"JH 3.0","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-29T08:21:31Z","updated_at":"2016-02-29T09:52:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/3029","html_url":"https://github.com/jhipster/generator-jhipster/pull/3029","diff_url":"https://github.com/jhipster/generator-jhipster/pull/3029.diff","patch_url":"https://github.com/jhipster/generator-jhipster/pull/3029.patch"},"body":"Related to https://github.com/jhipster/generator-jhipster/issues/2988\r\nAll changes:\r\n- all docker-compose files use v2 version, so you need docker 1.9+ and compose 1.6+\r\n- gateway and microservice can now be easily containerized:\r\n    - `mvn package docker:build -Pprod -DskipTests=true`\r\n    - `./gradlew -Pprod bootRepackage -x test buildDocker`\r\n- gateway and microservice apps generate 4 new files. As always, these files are here for samples, but can be used directly:\r\n    - src/main/docker/app.dev.yml : start microservice/gateway app with registry in dev profile\r\n    - src/main/docker/app.noregistry.prod.yml : start microservice/gateway app with registry in prod profile\r\n    - src/main/docker/app.dev.yml : start microservice/gateway app without registry in dev profile\r\n    - src/main/docker/app.noregistry.prod.yml : start microservice/gateway app without registry in prod profile\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/190129967","html_url":"https://github.com/jhipster/generator-jhipster/pull/3029#issuecomment-190129967","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3029","id":190129967,"user":{"login":"PierreBesson","id":513471,"avatar_url":"https://avatars.githubusercontent.com/u/513471?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreBesson","html_url":"https://github.com/PierreBesson","followers_url":"https://api.github.com/users/PierreBesson/followers","following_url":"https://api.github.com/users/PierreBesson/following{/other_user}","gists_url":"https://api.github.com/users/PierreBesson/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreBesson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreBesson/subscriptions","organizations_url":"https://api.github.com/users/PierreBesson/orgs","repos_url":"https://api.github.com/users/PierreBesson/repos","events_url":"https://api.github.com/users/PierreBesson/events{/privacy}","received_events_url":"https://api.github.com/users/PierreBesson/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T09:52:24Z","updated_at":"2016-02-29T09:52:24Z","body":"I see ! So it will start the registry only if it is not already started, otherwise it will use the existing registry docker instance. Is this statement correct ?\r\n\r\nAbout the config volume for the registry, I think it would be kind of bad to put it in the app itself as it is supposed to be shared between multiple app. The solution would be to use a git repository as the config server source as this is the correct way of using the config server. BTW, I already have a git server running in docker, I will push it to my demo repository, so you can see if it is a good solution. But in my opinion it is not as simple to use as using github.\r\n\r\nAnyway, great work, I will integrate it in my demo as soon as it is merged."}}