Public | Automated Build

Last pushed: 2 years ago
Short Description
lll
Full Description

Build image :
sudo docker build -t="opencds/opencds-jbpm:ubuntu" .

Create container, for example:

  • deamonized: sudo docker run -d --name opencds_jbpm -p 8080:8080 opencds/opencds-jbpm:ubuntu
  • all ports mapped to host ports: sudo docker run -P --name opencds_jbpm -i -t opencds/opencds-jbpm:ubuntu
  • interactive bash: sudo docker run -p 8080:8080 -p 1043:1043 -p 8081:8081 --name opencds_jbpm -i -t opencds/opencds-jbpm:ubuntu /bin/bash
                  sudo docker run -p 18080:8080 -p 1043:1043 -p 8081:8081 --name opencds_jbpm -i -t opencds/opencds-jbpm:ubuntu /bin/bash
    
    sudo docker run -p 18080:8080 -p 1043:1043 -p 8081:8081 -v /home/salvador/Drools6Adapter/webapps:/tomcat/webapps -v /home/salvador/Drools6Adapter/.opencds:/root/.opencds --name opencds_jbpm -i -t opencds/opencds-jbpm:ubuntu /bin/bash

Check jbpm-console in your browser (e.g.,) :
http://localhost:8081/jbpm-console/

Opencds service will be available on localhost:8080/opencds-decision-support-service?wsdl
you can debug on eclipse remotely usng localhost:1043

Notes:
jbpm installer ant scripts:
ant start.demo.noeclipse
ant stop.demo
ant clean.demo

References
GitHub https://github.com/droolsjbpm/jbpm
https://opencds.atlassian.net/wiki/pages/viewpage.action?pageId=23658619
https://opencds.atlassian.net/wiki/display/OP/REST+Security

playing with the container
1- build image
sudo docker build -t="opencds/opencds-jbpm:ubuntu" .

2- run container, for example:
Mapped to host ports: 8080, 8081 --> sudo docker run -p 8080:8080 -p 1043:1043 -p 8081:8081 --name opencds_jbpm -i -t opencds/opencds-jbpm:ubuntu /bin/bash
With SSH enable --> sudo docker run -p 8080:8080 -p 1043:1043 -p 8081:8081 -p 2222:22 --name opencds_jbpm -i -t opencds/opencds-jbpm:ubuntu /bin/bash

  • you can connect eclipse on remote debug on localhost:1043

3- start kie, opencds and enable ssh (user: root, pass: screencast):
/usr/local/bin/run.sh

4.- check your browser:
kie: http://localhost:8081/jbpm-console
opencds: http://localhost:8080/opencds-decision-support-service/evaluate

5- openc kie workbench and clone a test knowledge base from https://Salvador_Rdz@bitbucket.org/Salvador_Rdz/drools6adapter-kb.git
5.1 - login as admin/admin
5.2 - go to administration
5.3 - create an organizational unit e.g., org.opencds
5.4 - clone git repository on the new organizational unit

6- open the kb on the project explorer and build & deploy ( this will create a jar on maven which will be available to opencds)

5.- use SoapUI or another tool to test the service
...

Using cli client
sh ./bin/get.sh --url http://localhost:18080/opencds-decision-support-service/config/v1/ --username username --password my1pass1 --outfile test.txt --ee

Docker Pull Command
Owner
rolance
Source Repository