-
Notifications
You must be signed in to change notification settings - Fork 2
GovOps testbed and supporting tools
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:
-
Create sensor
./SensorGatewayUtil.sh sensor-i
This will start the script in interactive mode. You should simply follow the instructions.
-
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.
-
Assign sensor to gateway
./AddSensorToGateway.sh s1 my_gateway -m MQTT_BROKER_IP
-
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 .
- 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/