Tool for resin host OS updates.
[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.
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.
Prepare the image on the target by running
$ ./prepare.sh
This will stop all the running containers.
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 the container automatically:
[host] $ rce run -ti --privileged --rm --net=host --volume /:/host resinhup
[host] $ reboot
Want to contribute? Great! Throw pull requests at us.
- 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
See resinhupmeta.py.
See resinhupmeta.py.