Closed necrose99 closed 7 years ago
#!/bin/bash
#
# backup Gentoo RPi3 64 Necrose99
#
# if portage has lots of packages it will bloat the backup. , Swapfile will crash the backup.
# can use the script to dump fs also for docker.
tar -cvJf /backup.tar.xz --exclude=/var/cache/swap/swap1 --exclude=/usr/portage/* --exclude=/backup.tar.xz --one-file-system /
## TO DO , find a way to tuck the swap1 file back.. into archive...
https://www.dropbox.com/s/jptnzaf1fgr2k5d/sakaki--gentoo-rpi3-ARM64bit.tar.gz?dl=0
hears my tardump , granted i'ved added a number of packages since installing the base image.
Docker image should be built of it.. note tar dose contain docker...
How to set up an RPI3 docker cluster. (if you wish to build on native hardware) also a Banana pi 64 bit also is rpi3 like , but has 2 GIGS of ram. and costs 45 RPI3 vs 65 ... for little more , 2 gigs of ram. and is stated to be RPI compatible...
https://quay.io/repository/necrose99/gentoo-on-rpi3-64bit
https://hub.docker.com/r/necrose99/gentoo-on-rpi3-64bit/builds/
next rub is the gentoo emulation. however the docker container builds just toook a crap ton of time to upload a FS dump to dropbox and yank into quay.io.
https://hub.docker.com/r/necrose99/gentoo-on-rpi3-64bit/builds/
ADD Base Image # gentoo-on-rpi3-64bit
ADD https://github.com/sakaki-/gentoo-on-rpi3-64bit/releases/download/v1.0.2/genpi64.img.xz / > /mnt/
Unfortunately FS image is DD , (work-around add Busybox /bussybox/) however a straight tar-snapshot backup of the system makes for a better docker. however with some machinations image can be loop'ed @ /mnt > / although a touch more difficult, and more prone to fail. if you have a rootfs dump /boot / > tarball via url then it would work significantly better user begets a really nice chroot.
From necrose99/gentoo-on-rpi3-64bit ,
https://github.com/sakaki-gentoo-on-rpi3-64bit/rpi3-64bit-distcc (example) Run Emerge distcc etc... ADD a bash expose a port # (https://github.com/choldrim/docker-distcc) example.
docker lets you fork a container into a new one , makes testing or even rebuilding the rootfs images for this project all in the cloud. and or in a container. Sabayon , Gentoo Variant is now built and pushed in cloud https://circleci.com/