labsync/generate.sh

7 lines
281 B
Bash
Executable file

echo "building with packer…"
packer build packer.json
echo "compressing image…"
gzip -k -f rootfs.tar
echo "generate torrent…"
rm rootfs.torrent
mktorrent -a udp://tracker.sbruder.de:6969/announce -o rootfs.torrent -l 22 -w 'http://10.2.2.1:8081/rootfs.tar.gz' rootfs.tar.gz