Page 1
RESIN.IO
Gianluca LeoSapienza university of rome
Department of computer, control and management engineering (DIAG)Pervasive system
GitHub: Linkedin:
Email: [email protected]
https://github.com/GLeo93/Resin.io-Project/blob/master/README.mdhttps://www.linkedin.com/in/gianluca-leo-724032116?trk=hp-identity-photo
Page 2
Resin.io makes it simple to:
deploy
update
mantein code running on remote devices.
What’s Resin.io?
Page 3
Connected Home
Anything else you can think of...
Marketing & Retail
Manufacturing & Logistics
What’s Resin.io for?
Page 4
Push your project in Resin.io cloud
..and it compiles for device’s architecture
Compilation in the cloud
Page 5
1 2 3Insert your email Create your profile Insert a SSH Key to
transfer safely
Signing up
Page 6
..So let’s start, what you need
A supported device from the list
A 4GB or larger SD cardEthernet cable orWifi adapter
Micro usb cable
Some awesome ideas
Page 7
Click on Download device OS
Specify how your device connects to the internet
Format your SD card in FAT32
Copy the device OS into the SD card
To add a device you have to:
Push the card into the devices
Getting started with add a device
Page 8
You can also add more devices if you need
Devices connect
At most 5 for free
Page 9
What’s install on the device?Operating system: Yocto Linux
Application Environment: RCE (Resin Container Engine)
There is also a Resin.io Supervisor runs on your device. It has the purpose of:
Manage your applications
Communicate with the Resin’s servers
Download new application and update
Send log to your dashboard
Update itself automatically
Page 10
GIT CLONE
APT-GET WGETDEPENDENCIES
BUILDER
GIT SERVER
DOCKERREGISTRY
container storage
cross-compiler/containerizer
RESIN.IO CLOUD
device Management & monitoring
…more about resin
Resin.io API
Page 11
How work Git and Docker?
It’s free
Open Source
Version control
Fast performance
Git is used by the most important companies.
It’s free
Open Source
Deployment the application into software containerProvide an abstract virtualization of the application
Docker is used by the most important companies too.
Page 12
Building containers
Dockerfile Node.js project
The method they used to build depends:
Include the OS you define
Install packeges
Pull git repositories Run any command
Use the package.json
Package.json
To build the project use npm install
It’s used from Java, C#, Python ..
Page 13
Code into devicesThere is a Resin.io agent in our devices that: Download the changed layers of our application container image
Stop the old version, and start the new one
There are the Resin.io API that allow us to see what happen when our code is running in every devices
Page 14
Create an application..
Hit create
or install a project built on Resin.io
Choose the project
Run it to your application
Page 15
Running code on your device
Text2Speech example
Clone the project
Add resin git endpoint
Page 16
Tools offered by Resin