TODO: Add description
If available in Hex, the package can be installed
by adding sentinel_core
to your list of dependencies in mix.exs
:
def deps do
[{:sentinel_core, "~> 0.1.0"}]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/sentinel_core.
Export the following:
export ORG_ID='your-org-id'
export RELAY_API_KEY='relay-api-key'
export RELAY_ID='id-for-the-relay'
export RELAY_AUTH_TOKEN='relay-auth-token'
export DEVICE_TYPE='device-type-for-gateways'
export DEVICE_ID_A='gateway-a-device-id'
export AUTH_TOKEN_A='gateway-a-auth-token'
export DEVICE_ID_B='gateway-b-device-id'
export AUTH_TOKEN_B='gateway-b-auth-token'
Then run docker-compose down && docker-compose build && docker-compose up -d
The e2e tests is very rudimentary and works by listening to a source topic and
a sink topic for messages. The test will send a message by publishing a string
to message/$msg_sink
on the $msg_source
node and then listen to topic
send/message/$msg_sink
on the $msg_sink
node. To run:
# Build the test runner and target swarm
docker-compose -f e2e-test-swarm.yml build
# Start the test
docker-compose -f e2e-test-swarm.yml up -d
# Check logs
docker-compose -f e2e-test-swarm.yml logs test_runner