Docker Images Link Failing(KIE WorkBench & KIE Server)

686 views
Skip to first unread message

Avinash Konjeti

unread,
Apr 25, 2017, 7:29:29 AM4/25/17
to Drools Setup
Hi Team,

    I used drools-workbench-showcase , kie-server-showcase latest docker images and followed https://hub.docker.com/r/jboss/drools-workbench-showcase/ and https://hub.docker.com/r/jboss/kie-server-showcase/ urls and setup the drools and it is working fine as excepted.I am able to see KIE Server in workbench execution servers and able to perform deployments using workbench.

Now , I want to run the same docker images as services rather than containers in docker swarm mode. Even though i am running them(both docker services) in the same network i am unable to see the kie server inside workbench under execution servers menu.

Can you please help/explain me the internal implementation of kie workbench on identifying the kie  server and displaying it under execution servers menu .Also is there a way I can manually define/input the kie server url if system is not finding by itself?

FYI : Docker link command is not available in docker services and it is going to be deprecated soon for normal containers as well .So I used common network to create a bridge between both the services but it is not working for me as expected. Please help me on setup of the above images as docker services.

Also is there any common image with both workbench and server available in docker hub?

Thanks in advance,
Avinash Konjeti

Michael B

unread,
Apr 28, 2017, 5:05:17 AM4/28/17
to Drools Setup
Hi Avinash,

The Docker container for drools-workbench-showcase and kie-server-showcase are tested in "normal" Docker environment.
We don't have the experience with "docker swarm" https://docs.docker.com/engine/swarm/swarm-tutorial/
As you wrote, when using the docker images following the docs it works fine - you only get the problem when you use docker swarm.

As we don't have experience with "docker swarm" we can't help/explain you right now.
We will take your post as challenge to learn about "docker swarm".

Thank you

Michael B

Michael Anstis

unread,
Apr 28, 2017, 5:08:03 AM4/28/17
to drools...@googlegroups.com
Conversely, Avinash may be able to identify configuration changes for Docker Swarm and provide a Pull Request for the benefit of the Community :-)

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/797a5c81-39d4-44e7-b6e9-3c35c09ad0db%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

José A. Esquivel

unread,
Aug 17, 2017, 7:14:05 PM8/17/17
to Drools Setup
I just attempted this once but it is running just as well as in normal mode.

NOTES:
I had to run the following in order to create the network.

docker network create --driver=overlay --attachable core-infra

I read this and for just docker-compose they suggested adding network_mode: default.
But in the end I did not need that. I believe the key part here is the alias drools-wb:kie-wb that is created with link. You could try removing the link and setting aliases for the drools-wb

version: '3.1'

services:
  drools-wb:
    image: jboss/drools-workbench-showcase
    restart: always
    ports:
      - "8080:8080"
      - "8001:8001"
    volumes:
      - /code/Tecsou.Count/src/Tecsou.Count.Workbench:/opt/jboss/wildfly/bin/.niogit:rw
    #network_mode: default
    networks:
      - core-infra

  kie-server:
    image: jboss/kie-server-showcase
    restart: always
    links:
      - drools-wb:kie-wb
    depends_on:
      - drools-wb
    #network_mode: default
    networks:
      - core-infra

networks:
  core-infra:
    external: true

José A. Esquivel

unread,
Aug 18, 2017, 1:31:40 PM8/18/17
to Drools Setup
My bad, wrong docker-compose. This was the one the made it work with docker swarm for me:

version: '3.1'

services:
  drools-wb:
    image: jboss/drools-workbench-showcase
    ports:
      - "8080:8080"
      - "8001:8001"
    volumes:
      - /code/Tecsou.Count/src/Tecsou.Count.Workbench/.git:/opt/jboss/wildfly/bin/.niogit:rw
    networks:
      core-infra:
        aliases:
          - kie_wb

  kie-server:
    image: jboss/kie-server-showcase
    ports:
      - "8180:8080"
    depends_on:
      - drools-wb
    environment:
      # KIE Workbench environment variables
      # Neccessary to connect the KIE server to the KIE workbench
      - KIE_WB_PORT_8080_TCP=tcp://kie_wb:8080
      - KIE_WB_ENV_KIE_CONTEXT_PATH=drools-wb
      - KIE_WB_PORT_8080_TCP_ADDR=kie_wb
    networks:
      - core-infra

networks:
  core-infra:
    external: true

José A. Esquivel

unread,
Aug 18, 2017, 1:32:50 PM8/18/17
to Drools Setup
Reply all
Reply to author
Forward
0 new messages