I installed Docker onto my Raspberry Pi which is a containerization platform that allows users to quickly build, test and deploy applications as portable, self-sufficient containers that can run virtually anywhere.
I added my Pi to the Docker Group as a non-root user and ran Docker images designed to work on ARM under the prefix armhf.
Next I build and ran new images from Dockerfile by running a few commands:
$ docker images
$ cp ~/iot/lesson5/Dockerfile ~/demo
$ cd ~/demo
$ docker build -t curl_docker .
$ docker run curl_docker
$ docker images
Crossbar.io is an open source networking platform for distributed and microservice applications. It is a feature rich, scalable, robust and secure implementation of the open Web Application Messaging Protocol (WAMP).
Step 1 of the lab involves running Crossbar.io router on Terminal 1 of the Pi. Step 2 is two run publish-client on Terminal 2 and step 3 was to run subscribe-client on Terminal 3. The results are shown below.
Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers.
The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers.
I installed both Mosquitto and Pahoto subscribe to one terminal and publish on another using one Raspberry Pi.