Skip to content

This is a barebone resin.io application to demonstrate persisting data through updates and using environment variables.

Notifications You must be signed in to change notification settings

balena-io-experimental/balena-fundementals-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic tutorial 2

This is a barebone resin.io application to demonstrate persisting data through updates and using environment variables.

It's a basic Flask app that uses psutil to read CPU usage on the device and save it to an SQL database using Flask-SQLAlchemy. That db is stored in /data as this directory is essentially a docker data VOLUME and is therefore maintained through container restarts.

Note: that this folder is not mounted when your project is building on our build server, so you can't access it from your Dockerfile. It is only created once your project is deployed to the actual devices.

The interval is set by resin.io environmental variable INTERVAL(defaults to 20s).

About

This is a barebone resin.io application to demonstrate persisting data through updates and using environment variables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published