Adapting Shellhttpd¶
Edit shellhttpd
back to its original state.
Tip
In case you do not have the shellhttpd
application. Complete the tutorial:
Creating Your First Target
Open a new terminal on your host machine and go into your containers repo folder.
Edit httpd.sh
according to the example below:
Edit the file Dockerfile
according to the example below:
Edit the file docker-compose.yml
according to the example below:
Note that MSG
is defined with This is the TEST 01
.
Commit and push all changes:
Wait for your build to finish by checking the latest Target on the Devices tab for your Factory.
Use fioctl
to configure your device to run just the shellhttpd
application:
In a few minutes, your device should receive an update.
On your device, test the container again:
Check again the Target version list with fioctl
VERSION TAGS APPS HARDWARE IDs
------- ---- ---- ------------
2 devel raspberrypi3-64
3 master raspberrypi3-64
4 devel shellhttpd raspberrypi3-64
5 devel shellhttpd raspberrypi3-64
6 devel shellhttpd raspberrypi3-64
7 devel shellhttpd raspberrypi3-64
8 devel shellhttpd-mqtt,mosquitto,shellhttpd,flask-mqtt-nginx raspberrypi3-64
9 devel mosquitto,shellhttpd,flask-mqtt-nginx,shellhttpd-mqtt raspberrypi3-64
10 devel mosquitto,shellhttpd,flask-mqtt-nginx,shellhttpd-mqtt raspberrypi3-64
Check what Target your device is running:
Whenever you push changes to the devel
branch, FoundriesFactory® CI will build and generate a new Target tagged with devel
.
As a result, devices following devel
will update to the latest Target.