Releasing GotCloud

From Genome Analysis Wiki
Revision as of 18:03, 25 February 2015 by Mktrost (talk | contribs) (Mktrost moved page Creating Packages to Releasing GotCloud)
Jump to navigationJump to search

Back to parent: GotCloud

Software for GotCloud is kept in a git repository on github. This document describes how we create the Debian package and tar file for GotCloud.

Get the software (in this case from github):

 cd ~/dev
 git clone git://github.com/statgen/gotcloud.git
 Cloning into 'gotcloud'...
 done.
 ls gotcloud
 bin/  Copyrights/  debian/  gotcloud  INSTALL.txt  README  release_version.txt  scripts  src  test

Build the Source

 cd ~/dev/gotcloud/src
 make

Build the Packages

Debian binaries DEB, TAR file

 cd ~/dev/gotcloud
 debian/makedeb.sh bin = (or in place of '=' use a version number)
 Making binaries in src.  First time this will take a couple of minutes
 Binaries created as necessary
 dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): 
   [lines deleted]
 dpkg-deb: building package `gotcloud-bin' in `./gotcloud-bin_1.06_amd64.deb'.
 Debian package file created
 -rw-r--r-- 1 tpg tpg 7933560 May 20 08:28 /home/tpg/dev/gotcloud/gotcloud-bin_1.06_amd64.deb
 Creating tar file for 'bin'
 Tar file created
 -rw-r--r-- 1 tpg tpg 7983521 May 20 08:28 /home/tpg/dev/gotcloud/gotcloud-bin_1.06.tar.gz

Debian test DEB, TAR file

 cd ~/dev/gotcloud
 debian/makedeb.sh test = (or in place of '=' use a version number)
 #############################################################
 #  Creating the 'test' package takes a pretty long time. Patience grasshopper...
 #############################################################
 dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): ...
   [lines deleted]
 dpkg-deb: building package `gotcloud-test' in `./gotcloud-test_1.06_amd64.deb'.
 Debian package file created
 -rw-r--r-- 1 tpg tpg 382184656 May 20 08:41 /home/tpg/dev/gotcloud/gotcloud-test_1.06_amd64.deb
 Creating tar file for 'test'
 Tar file created
 -rw-r--r-- 1 tpg tpg 383138926 May 20 08:42 /home/tpg/dev/gotcloud/gotcloud-test

Make these available via FTP:

 cd ~/dev/gotcloud
 ls -la *.deb *.tar.gz
 -rw-r--r-- 1 tpg tpg   7933560 May 20 08:28 gotcloud-bin_1.06_amd64.deb
 -rw-r--r-- 1 tpg tpg   7983521 May 20 08:28 gotcloud-bin_1.06.tar.gz
 -rw-r--r-- 1 tpg tpg 382184656 May 20 08:41 gotcloud-test_1.06_amd64.deb
 -rw-r--r-- 1 tpg tpg 383138926 May 20 08:42 gotcloud-test_1.06.tar.gz

 scp *.deb *.tar.gz gotcloud@share.sph.umich.edu

This makes the Debian packages and tar files available to outsiders using anonymous FTP (or wget).