Public Repository

Last pushed: 4 days ago
Short Description
The CWDS Dora provides RESTful services with search capabilities.
Full Description

Running docker container with Dora in non-secured mode

After pulled, run the Dora with a command like the following :
docker run -d --name=<container name> -p 8080:8080 -e ES_HOST=<ELASTICSEARCH_IP> -e ES_PORT=9200 -e XPACK_ENABLED=false cwds/dora

For example:
docker run -d --name=dora1 -p 8080:8080 -e ES_HOST=192.168.56.1 -e ES_PORT=9200 -e XPACK_ENABLED=false cwds/dora

Add -e SHOW_SWAGGER=true to turn on swagger for development purposes:
docker run -d --name=dora1 -p 8080:8080 -e ES_HOST=192.168.56.1 -e ES_PORT=9200 -e XPACK_ENABLED=false -e SHOW_SWAGGER=true cwds/dora

Assuming that Dora's IP address is 192.168.99.100, swagger should be available at: http://192.168.99.100:8080/swagger

Assuming that Dora's IP address is 192.168.99.100, the Dora should be able to handle POST requests to URLs like:

  • http://192.168.99.100:8080/dora/people/person/_search
  • http://192.168.99.100:8080/dora/facilities/facilitiy/_search

for example:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "query" : { "term" : { "name" : "John" } } }' http://192.168.99.100:8080/dora/people/person/_search

Dora availability quick check

Assuming that Dora's IP address is 192.168.99.100, the Dora should be able to handle GET requests like:
curl -X GET --header 'Accept: application/json' http://192.168.99.100:8080/application

Running docker container with Dora in secured mode

Security is enabled by default in Dora. To run Dora in secured mode, simply omit -e XPACK_ENABLED=false from the docker commands above.
Or use -e XPACK_ENABLED=true.

Add -e PERRY_URL=… to configure Perry location which is used when you click the login button on the swagger UI.

For example: -e PERRY_URL=http://localhost:8090/authn/login

Docker Pull Command
Owner
cwds

Comments (1)
drudenko185
3 months ago

XPACK_USER (default is elastic)
XPACK_PASSWORD (default is changeme)