Presentazione resin.io

16
RESIN.IO Gianluca Leo Sapienza 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.md https://www.linkedin.com/in/gianluca-leo-724032116?trk=hp-identity- photo

Transcript of Presentazione resin.io

Page 1: 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

Page 2: Presentazione resin.io

Resin.io makes it simple to:

deploy

update

mantein code running on remote devices.

What’s Resin.io?

Page 3: Presentazione resin.io

Connected Home

Anything else you can think of...

Marketing & Retail

Manufacturing & Logistics

What’s Resin.io for?

Page 4: Presentazione resin.io

Push your project in Resin.io cloud

..and it compiles for device’s architecture

Compilation in the cloud

Page 5: Presentazione resin.io

1 2 3Insert your email Create your profile Insert a SSH Key to

transfer safely

Signing up

Page 6: Presentazione resin.io

..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: Presentazione resin.io

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: Presentazione resin.io

You can also add more devices if you need

Devices connect

At most 5 for free

Page 9: Presentazione resin.io

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: Presentazione resin.io

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: Presentazione resin.io

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: Presentazione resin.io

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: Presentazione resin.io

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: Presentazione resin.io

Create an application..

Hit create

or install a project built on Resin.io

Choose the project

Run it to your application

Page 15: Presentazione resin.io

Running code on your device

Text2Speech example

Clone the project

Add resin git endpoint

Page 16: Presentazione resin.io

Tools offered by Resin