Created
May 13, 2014 14:17
-
-
Save meconlin/2a3cdd6bcf44807259fc to your computer and use it in GitHub Desktop.
Cloudbees Jenkins build script for django and mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/mysql | |
cat > ~/.my.cnf <<EOF | |
[mysqld] | |
datadir=/home/jenkins/mysql/data | |
user=jenkins | |
socket=/home/jenkins/mysql/mysql.sock | |
EOF | |
export MYSQL_HOME=~/mysql | |
mysql_install_db | |
/usr/libexec/mysqld & | |
virtualenv env | |
. env/bin/activate | |
pip install -r requirements.txt | |
./manage.py jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment