I use jboss/kie-server-showcass image to run kie server. I want to know How can I config kie smart router for image file. I pass KIE_SERVER_ROUTER as environment when execute docker run command:
docker run -p 8180:8080 -d --name kie-server -e KIE_SERVER_ROUTER=http://172.17.0.1:9000 --link jbpm-workbench:kie-wb jboss/kie-server-showcase:latest
but it doesn't work and the kie server can't register to kie smart router.
I clone the https://github.com/jboss-dockerfiles/business-central and in kieserver/showcase/etc
change the start_kie-server.sh
file and modify JBOSS_ARGUMENTS:
JBOSS_ARGUMENTS=" -b $JBOSS_BIND_ADDRESS -Dorg.kie.server.id=$KIE_SERVER_ID -Dorg.kie.server.user=$KIE_SERVER_USER -Dorg.kie.server.pwd=$KIE_SERVER_PWD -Dorg.kie.server.location=$KIE_SERVER_LOCATION -Dorg.kie.server.router=http://172.17.0.1:9000"
and add -Dorg.kie.server.router=http://172.17.0.1:9000"
to JBOSS_ARGUMENTS, and kie server registered to kie smart router successfully. But I don't what modify original image, to do register kie server.
Is there anyway to register kie server as a docker container to kie smart router?
Hello had the same issue First Build kie router image : You need to have kie smart router jar you can download it from the Redhat site
start_kie-server-router.sh :
Build kie server image where you will be using smart router option clone this repo : https://github.com/jboss-dockerfiles/business-central/tree/master/kie-server/showcase
In Dockerfile edit
In start_kie-server.sh add
Finally docker compose