Assuming that with JHipster I've generated: - 1 Gateway (with MongoDB + JHipsterRegistry) - 3 Microservices [called A, B and C] (with MongoDB + JHipsterRegistry)
I'm using maven.
I've composed all in Docker, so the resulting Docker configuration is:
All works fine: from the Gateway I can see entities from each Microservice.
Now I need to implement some features on Gateway (UI pages etc), and I need to debug with Eclipse during development.
How can I achieve this?
A) Do I need to run all manually, so running:
B) Or can I use somehow docker for all "static" components and run only the Gateway from eclipse?
C) Any other suggestion?
If (A):
If (B):
I did something similar as follows, duplicate your docker-compose
directory
create docker-compose-dev
edit the new docker-compose.yml
remove the gateway service
edit your hosts file create an entry as follows:
127.0.0.1 jhipster-registry
run this setup docker compose up -d
It should start without issues then you can run your gateway
from the command line terminals using mvnw
and npm start
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.