This is a minimal Flogo application based on the builtin Flogo example app.
It adds the Square IT Services Configuration Management contribution.
The application can be created using the flogo.json from this directory and the Flogo CLI:
flogo create -f https://raw.githubusercontent.com/square-it/flogo-starter-kits/master/configmgmt/consul/flogo.json flogo-app-config-mgmt-consul
cd flogo-app-config-mgmt-consul # enter in the directory of the created application
flogo build -e # build the application and embed the flogo.json in the binary
To test this getting started application, a Consul key-value store running in a local Docker container will be used.
- Start a single-host development-mode Consul agent with Docker (for testing purpose only)
docker run -d --name=dev-consul -e CONSUL_BIND_INTERFACE=eth0 -p 8500:8500 consul
- Add a value for the property
log.message
in Consul
docker exec -t dev-consul consul kv put flogo/flogo-app-config-mgmt-consul/log/message "Consul message"
- Run the application
./bin/flogo-app-config-mgmt-consul
- In another terminal, trigger a flow:
curl http://127.0.0.1:8888/test/hello
You should see a log like:
INFO [flogo.activity.log] - Consul message
Full documentation can be found in the Configuration Management contribution repository.