... | ... | @@ -145,6 +145,16 @@ The following commands are used to build and launch the Docker container for the |
|
|
2. Build a new Docker container: `docker build --no-cache -t validationtool:latest .`
|
|
|
3. Start the Docker container in background: `docker run --detach --rm --name validationtool --publish 5002:5000 validationtool:latest`
|
|
|
|
|
|
You can test the connection with the validation tool with:
|
|
|
```
|
|
|
curl -X POST -H "Content-Type: application/json" -d '{"location": {"type": "geo:json", "value": {"type": "Point", "coordinates": [1,2]}, "metadata": {}}, "temperature": {"type":"Number", "value":0.0, "metadata": {}}, "pH": {"type":"Number", "value": 0.0, "metadata": {}}}' http://5.53.108.182:5002/validation/v2/entities/urn:ngsi-ld:WaterQualityObserved:WaterTreatmentPlant/attrs
|
|
|
```
|
|
|
|
|
|
For you information, the following command permits to copy the specifications from the host virtual machine to the Docker container in the right place:
|
|
|
```
|
|
|
docker cp specs/. validationtool:/home/naiades/specs
|
|
|
```
|
|
|
|
|
|
# Configuring IoT Platform services
|
|
|
|
|
|
# Testing IoT Platform services
|
... | ... | @@ -180,15 +190,7 @@ https://stackoverflow.com/questions/11683850/how-much-memory-could-vm-use |
|
|
### Problem: To correctly start the validation tool in the NAIADES IoT Platform in dev
|
|
|
|
|
|
|
|
|
You can test the connection with the validation tool with:
|
|
|
```
|
|
|
curl -X POST -H "Content-Type: application/json" -d '{"location": {"type": "geo:json", "value": {"type": "Point", "coordinates": [1,2]}, "metadata": {}}, "temperature": {"type":"Number", "value":0.0, "metadata": {}}, "pH": {"type":"Number", "value": 0.0, "metadata": {}}}' http://5.53.108.182:5002/validation/v2/entities/urn:ngsi-ld:WaterQualityObserved:WaterTreatmentPlant/attrs
|
|
|
```
|
|
|
|
|
|
For you information, the following command permits to copy the specifications from the host virtual machine to the Docker container in the right place:
|
|
|
```
|
|
|
docker cp specs/. validationtool:/home/naiades/specs
|
|
|
```
|
|
|
|
|
|
### Problem: Not all the required attributes are stored in the historical database.
|
|
|
|
... | ... | |