Presentazione resin.io
-
Upload
gianluca-leo -
Category
Devices & Hardware
-
view
78 -
download
0
Transcript of Presentazione resin.io
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
Resin.io makes it simple to:
deploy
update
mantein code running on remote devices.
What’s Resin.io?
Connected Home
Anything else you can think of...
Marketing & Retail
Manufacturing & Logistics
What’s Resin.io for?
Push your project in Resin.io cloud
..and it compiles for device’s architecture
Compilation in the cloud
1 2 3Insert your email Create your profile Insert a SSH Key to
transfer safely
Signing up
..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
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
You can also add more devices if you need
Devices connect
At most 5 for free
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
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
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.
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 ..
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
Create an application..
Hit create
or install a project built on Resin.io
Choose the project
Run it to your application
Running code on your device
Text2Speech example
Clone the project
Add resin git endpoint
Tools offered by Resin