8000 GitHub - everyside/resinhup: RESIN Host os UPdater
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

everyside/resinhup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

RESIN Host os UPdater

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%
0