Balena.io Docker and Gitflow Continuous Deployment for Raspberry Pi and other Edge devices
https://www.balena.io/blog/resin-io-changes-name-to-balena-releases-open-source-edition/
Resin.io changed name to Balena but its principles stays the same, and its concepts to develop on linux edge devices such as Raspberry Pis just like we push software in continuous deployment in the cloud (fully automated with Git).
With Balena, you can update your code and push it to all your devices, directly from git. This was very difficult before due to the different hardware environment of many Iot devices (lots of different processors - ARM - Intel ....that needed cross compilation of code).
Now you can manage fleets of devices with different architecture and manage cross compilation on the fly on the cloud, simply by pushing your code on Github.
https://docs.resin.io/raspberrypi3/python/getting-started/#using-the-web-terminal
1) First step to start working on a RESIN project
- Clone the project on your computer
- Add the resin git remote endpoint by running the command git remote add
shown in the top-right corner of your application page
git remote add resin user_toto@git.resin.io:user_toto/my_app.git
- when we push new changes to this remote repository it will get compiled and built on our servers and deployed to every device in the application fleet.
git add
, git commit
, git push
to deploy our code to the devices connected on RESIN.for exemple %%RESIN_MACHINE_NAME%%
place holder gets stripped and replaced with the resin device name, so that the same repository is used for various devices that can have different hardware)/usr/src/app
on your selected device and finally it will restart the container. apt-get
or add something to either your Dockerfile
, package.json
or requirements.txt
, then you will need to go through the standard git push resin master
build pipeline.resin sync
resin ssh
to access the container. Here is an example:
Commentaires
Enregistrer un commentaire
Tell me what you think