Skip to content

GovOps testbed and supporting tools

Stefan Nastic edited this page Dec 21, 2015 · 1 revision

This is only for local deployment. For our testbed see: TODO

NOTE: This manual assumes that the testbed runs on the same machine as the GovOps. In case the GovOps is deployed on different (sub)network in GovOps balancer.properties you need to configure "nodes" with a public IP (127.0.0.1 will not work!)

Requires Docker installation. Optional MQTT brocker.

Provided tools are:

  • SensorGatewaytool
  • AddSensorToGateway
  • RunContainer

Steps:

  1. Create sensor

    ./SensorGatewayUtil.sh sensor-i

This will start the script in interactive mode. You should simply follow the instructions.

  1. Create gateway

    ./SensorGatewayUtil.sh gateway -i

This will start the script in interactive mode. You will at least need to provide:

  • provide name e.g., my_gateway
  • provide GovOps IP
  • provide meta data

The rest can be default for most usecases.

  1. Assign sensor to gateway

    ./AddSensorToGateway.sh s1 my_gateway -m MQTT_BROKER_IP

  2. Build Docker base image

Next build base image for my_gateway

cd iCOMOT-simulated-devices/gateways/my_gateway/
sudo docker build -t gateway/my_gateway .
  1. Deploy the simulated gateway

Run gateway my_gateway and sensor s1

./util/runContainer.sh HOST_PORT my_gateway

NOTE: To stop and undeploy all the gateways, you can use:

./util/stop-remove-all.sh

6)Check deployment with GovOps

You should be now able to see my_gateway at:

http://localhost:8080/APIManager/governanceScope/globalScope/
Clone this wiki locally