Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
infra:torrent [2016/05/22 11:38]
sebian
infra:torrent [2018/12/09 01:46]
sebian
Line 1: Line 1:
-====== Prepare ​an image for upload ​(torrent/​http) ​======+====== Prepare ​and upload ​a new image ======
  
-  * Compress ​the image+This script takes in argument ​the image date (''​2016-05-21''​ for example), you must have access on LDN servers (''​bender.ldn-fai.net''​ and ''​brique.ldn-fai.net''​),​ and you must have the private GPG key of LaBriqueInterNet (''​0xCD8F4D648AC0ECC1'',​ available in the LDN password-store,​ :?: ask ju or sebian for more information).
  
 <​code>​ <​code>​
-img=labriqueinternet_"​$(date '​+%d-%m-%Y'​)"​.img +mkdir /media/pub
-loop=$(sudo losetup -f)  +sshfs brique.ldn-fai.net:/var/​www/​repo.labriqueinter.net /media/pub 
-sudo losetup -o 1048576 $loop $img +cp /​path/​to/​the/​new/​labriqueinternet_A20LIME*.img.tar.xz ​/​media/​pub/​images/​ 
-sudo mount $loop /mnt +cd /tmp/ 
-sudo sfill -z -l -l -f /mnt +wget https://​raw.githubusercontent.com/​labriqueinternet/​configuration_scripts/​master/​utils/​publish-image.sh
-sudo umount ​/mnt +
-tar cfJ $img.tar.xz ​$img+
 </​code>​ </​code>​
-  ​ 
-  * Upload the //tar.xz// and //torrent// files on //​mirabelle//​ (for http://​repo.labriqueinter.net/​) 
-  * Create the meta file (torrent) 
  
-<​code>​ +Then, if you have all the requirements,​ you can run this script!
-for i in *2016-05-21* +
-do +
-  echo "run on $i" +
-  btmakemetafile http://​ldn-fai.net:​6969/​announce $i --announce_list '​http://​ldn-fai.net:​6969/​announce|udp://​tracker.torrent.eu.org:​451'​ --comment 'La Brique Internet : https://​labriqueinter.net/'​ --httpseeds '​http://​repo.labriqueinter.net'​ +
-  chown ldnadmin: $i +
-done +
-</​code>​ +
- +
-  * Re-create ​the MD5SUMS file+
  
 <​code>​ <​code>​
-rm -f MD5SUMS +bash publish-image.sh ​-i 2016-08-16
-for in $(ls labriqueinternet*) +
-do +
-  md5sum $i >> MD5SUMS +
-done+
 </​code>​ </​code>​
  
-  * Upload ​the //torrent// file on //ginkgo// in ///​torrent/​btfiles///​ (for allowed torrent on LDN tracker) +This script update the MD5SUMS file with the compressed image, generate ​the torrent ​and the asc signature, upload torrents files on the authorized files (on [[http://tracker.ldn-fai.net:​6969|LDN Tracker]]), and finally update the symlinks.
  • infra/torrent.txt
  • Last modified: 2019/03/10 17:39
  • by keoma