The idea is, that during development, we have to run the infrastructure components via docker-compose
these are
mysql
rabbitmq
discovery
configserver
edgeserver
But we can decide via active-profile switch, if we want to run the process-engines and the workload services directly from the console/IDE so we do not have to rebuild and restart the docker containers anymore.
Motivation: reduction of roundtrip time
For this to work we need to:
provide bootstrap-local.yml for all components in question where we define a localhost configserver
provide "*-local.yml" configurations for all components that use "localhost" references instead of docker-network internal names.
Challenges: This should work without completely copying the yaml files, it should be enough to just provide a delta in the -local files, preferably just the different hostnames.
Note: to make this work on machines where docker-host is on a vm, we need to use ${DOCKER_IP:localhost} instead of localhost so when a docker-ip is present, it is used instead of the localhost.
The idea is, that during development, we have to run the infrastructure components via docker-compose
these are
But we can decide via active-profile switch, if we want to run the process-engines and the workload services directly from the console/IDE so we do not have to rebuild and restart the docker containers anymore.
Motivation: reduction of roundtrip time
For this to work we need to:
Challenges: This should work without completely copying the yaml files, it should be enough to just provide a delta in the
-local
files, preferably just the different hostnames.Note: to make this work on machines where docker-host is on a vm, we need to use
${DOCKER_IP:localhost}
instead oflocalhost
so when a docker-ip is present, it is used instead of the localhost.