-
Notifications
You must be signed in to change notification settings - Fork 0
LabCAS Test Workflow
Luca Cinquini edited this page Aug 22, 2016
·
3 revisions
The "LabCAS Test Workflow" is a demo application that illustrates how to execute a mock workflow using LabCAS services deployed as separate Docker containers. The test workflow is composed of a single task, which generates and publishes a small file.
- Clone this repository, cd to this example directory:
- git clone https://github.com/oodt-cloud/docker.git
- cd labcas/labcas-test
- In a first docker terminal, start the LabCAS services in separate containers: the OODT File manager (with Solr back-end), the OODT Workflow Manager, and the OODT Product Server. Follow the services standard output.
- docker-compose up -d
- docker ps
- docker-compose logs -f
- In a second docker terminal, connect to the Workflow Manager container and submit a test workflow:
- docker exec -it oodt_wmgr /bin/bash
- cd $OODT_HOME/cas-workflow/bin
- ./wmgr-client --url http://localhost:9001 --operation --sendEvent --eventName labcas-test --metaData --key experiment 1 --key species snakes --key location LAB01
- Follow the test-workflow output in the first docker terminal
- Still in the second terminal, verify that the output file has been published to the Solr catalog, and that it is downloadable from the OODT Product Server:
- In the first Docker window, shut down the LabCAS services and remove the Docker containers (the session in the second Docker terminal will be disconnected as well):
- ctrl-C
- docker-compose down