Generator-jhipster: Not recompiling on change when using docker and docker-compose for a microservices architecture

Created on 7 Jun 2018  Â·  4Comments  Â·  Source: jhipster/generator-jhipster

Overview of the issue

I faced this problem when building docker images and generating docker-compose.yml for my microservices. Unfortunately, I cannot use docker as a development environment, since it is not automatically reload after code changes and it is a waste of time since it requires rebuilding images and lauching again.

Motivation for or Use Case
Reproduce the error
Related issues

https://github.com/jhipster/generator-jhipster/issues/6126

Suggest a Fix

JHipster Version(s)

4.14.1

JHipster configuration

Entity configuration(s) entityName.json files generated in the .jhipster directory

Browsers and Operating System


OS: Linux stretch 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux

  • [x] Checking this box is mandatory (this is just to show you read everything)

Most helpful comment

You can launch the Elasticsearch docker container with docker-compose -f src/main/docker/elasticsearch.yml up -d and connect to it from the app running with ./mvnw or ./gradlew

All 4 comments

what is the problem here, thats how it works. If you want live reload the use the development workflow and not docker. Run applications(except registry and console) using ./mvnw or ./gradlew and run yarn start for gateway

@deepu105 thanks for your quick response, but actually I want live reload with docker, since I am using ElasticSearch and it is not embedded based on @jdubois response on a previous issue https://github.com/jhipster/generator-jhipster/issues/7413 . Otherwise you can see that it is possible to use docker as a development tool with live reload on spirng http://endoflineblog.com/optimizing-development-with-docker

what do you think about that? It can be possible to PR this issue?

Thanks

If you know how to make it work, then please do a PR and we can consider it
based on how it fits our flow

Thanks & Regards,
Deepu

On Thu, Jun 7, 2018 at 2:07 PM Naamane Ilias notifications@github.com
wrote:

@deepu105 https://github.com/deepu105 thanks for your quick response,
but actually I want live reload with docker, since I am using ElasticSearch
and it is not embedded based on @jdubois https://github.com/jdubois
response on a previous issue #7413
https://github.com/jhipster/generator-jhipster/issues/7413 . Otherwise
you can see that it is possible to use docker as a development tool with
live reload on spirng
http://endoflineblog.com/optimizing-development-with-docker

what do you think about that? It can be possible to PR this issue?

Thanks

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/7742#issuecomment-395396965,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDlFwHX7Cev96ROEOi6iIllhrcjwHwwks5t6RdpgaJpZM4UeGue
.

You can launch the Elasticsearch docker container with docker-compose -f src/main/docker/elasticsearch.yml up -d and connect to it from the app running with ./mvnw or ./gradlew

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dronavallisaikrishna picture dronavallisaikrishna  Â·  3Comments

chegola picture chegola  Â·  4Comments

kaidohallik picture kaidohallik  Â·  3Comments

trajakovic picture trajakovic  Â·  4Comments

SudharakaP picture SudharakaP  Â·  3Comments