Testing Applications¶
You will use Fioctl® to enable your new apps,
but first follow the aktualizr-lite
logs on your device with the following command:
On your host machine, enable all the new apps:
You should shortly see aktualizr-lite
add the apps.
Once aktualizr-lite
finishes, check the running containers:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9c563d12b2c6 hub.foundries.io/cavel/shellhttpd-mqtt "/usr/local/bin/http…" 9 minutes ago Up 9 minutes 0.0.0.0:8082->8082/tcp shellhttpd-mqtt_httpd-mqtt_1
ab91fca6c88b eclipse-mosquitto "/docker-entrypoint.…" 9 minutes ago Up 9 minutes 0.0.0.0:1883->1883/tcp mosquitto_mosquitto_1
0b88c1dc7bbf nginx "/docker-entrypoint.…" 10 minutes ago Up About a minute 0.0.0.0:80->80/tcp flask-mqtt-nginx_nginx_1
129a54e5821b hub.foundries.io/cavel/flask-mqtt "python3 -m flask ru…" 10 minutes ago Up 7 minutes flask-mqtt-nginx_flask-mqtt_1
On your device, follow the shellhttpd-mqtt_httpd-mqtt_1
container logs:
In a second terminal, test your apps using curl
.
Use any external device connected to the same network, such as your computer.
At the same time, in the first terminal connected to your device,
the shellhttpd-mqtt_httpd-mqtt_1
logs should show:
Now, test flask-mqtt-nginx_flask-mqtt_1
.
First, follow the container log on your device with the command:
In a second terminal, test your apps using curl
.
Use any external device connected to the same network, such as your computer.
In the first terminal connected to your device,
the flask-mqtt-nginx_flask-mqtt_1
logs should show:
Now, as you access the shellhttpd-mqtt_httpd-mqtt_1
app,
flask-mqtt-nginx_flask-mqtt_1
will track how many accesses there have been.
The total count will be displayed when you check port 80.
Access shellhttpd-mqtt_httpd-mqtt_1
a few more times:
Verify flask-mqtt-nginx_flask-mqtt_1
received all messages and updated the flask page: