Docker Images
First of all, for both pushing and pulling images, it is mandatory to login in the registry. Enter the following command: Linux: sudo docker login docker.inter-iot.eu Windows: docker login docker.inter-iot.eu
Using the following credentials:
User: docker
Password: interiot.docker
This only has to be done once per host and not every time you want to push/pull an image.
Then you can use the image that provides INTER-IoT to deploy the core interoperability solution: docker run docker.inter-iot.eu/inter-as-node-red
Or you can test a complete solution using the following docker-compose file:
Executing:
docker-compose up to start (-d for dettached)
docker-compose down to stop and clean
Note: nodered-data directory is mounted in /data in nodered container, here is where flows.json and other data (positions) is loaded/saved. You have to give read+write permission to the container, in order to avoid confusion give access to all users with: chmod a+rwx -R nodered-data
Setup:
For some reason, open any deployed sth node, edit server and save + deploy (without changing anything) In ORION SETUP tab, start flows: orion setup and feed portcalls if you want sth to have already data for each truck.
Recomendation: Don't use hardcoded IP's. The containers can see each other through the same network, and the hostnames are: orion, fiware-sth, etc. Check the alias section in each service of docker-compose.yml.