Code Monkey home page Code Monkey logo

resinhup's Introduction

Resinhup

Tool for resin host OS updates.

Instalation

Pull from resin registry

[host] $ rce pull registry.resinstaging.io/resinhup/resinhup-<<machine>>
[host] $ rce tag -f registry.resinstaging.io/resinhup/resinhup-<<machine>> resinhup

Latest tag will point to the image build from the latest git tag. Replace <<machine>> by your target machine. Example raspberry-pi2. See https://github.com/resin-io/resinhup/blob/master/conf/resinhup for supported machines.

Local built rce/docker images

Clone this repository on target (or transfer), change your current directoy in the one where you have the cloned copy of the repository and:

[host] $ cp Dockerfile.<machine> Dockerfile
[host] $ rce build -t resinhup .

Replace <<machine>> by your target machine. Example raspberry-pi2. See https://github.com/resin-io/resinhup/blob/master/conf/resinhup for supported machines.

How to use

Prepare the image on the target by running

$ ./prepare.sh

This will stop all the running containers.

Run container manually

Run the container manually using:

[host     ]$ rce run -ti --privileged --rm --net=host --volume /:/host resinhup /bin/bash
[container]$ python /app/resinhup.py --config /app/conf/resinhup.conf --debug
[container]$ exit
[host     ]$ reboot

Run container automatically

Run the container automatically:

[host] $ rce run -ti --privileged --rm --net=host --volume /:/host resinhup
[host] $ reboot

Development

Want to contribute? Great! Throw pull requests at us.

Todos

  • Safety checks for "to be updated" partition (size, existent fs etc.)
  • Use the boot file from a directory in the rootfs update partition called "/assets"
  • Add support for other resin supported targets

Version

See resinhupmeta.py.

License

See resinhupmeta.py.

resinhup's People

Contributors

agherzan avatar

Watchers

Jay Mooney avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.