add packaging docs

pull/57/head
John Shahid 2013-11-13 17:44:46 -05:00
parent 1fa01bec9d
commit 932292a361
1 changed files with 30 additions and 0 deletions

30
packaging.md Normal file
View File

@ -0,0 +1,30 @@
### Packaging
In order to support all distros and old libc we build and package on
centos6.4 (64 bit). The package script takes care of cross compiling
Influxdb for 32bit architectures.
TODO: move the following to chef recipe.
Below are the steps needed to setup a centos6.4 vm to build Influxdb.
```
sudo yum install git-core glibc.i686 hg bzr protobuf-compiler glibc-devel.i686 libstdc++.i686 libstdc++-devel.i686 python-pip
sudo pip install --upgrade awscli
git clone git@github.com:influxdb/influxdb.git
wget http://go.googlecode.com/files/go1.1.2.linux-amd64.tar.gz
mkdir bin
cd bin
tar -xzvf ../go1.1.2.linux-amd64.tar.gz
mv go go1.1.2
ln -s go1.1.2 go
cd ..
curl -L https://get.rvm.io | bash -s stable
rvm install 1.9.3
cd influxdb/
git clean -dfx
git checkout .
git pull --rebase
# PATH=$HOME/bin/go/bin:$PATH GOROOT=~/bin/go/ ./test.sh
PATH=$HOME/bin/go/bin:$PATH GOROOT=~/bin/go/ ./release.sh 0.1.1.rc3
```