Skip to content

Instantly share code, notes, and snippets.

@meconlin
Created May 13, 2014 14:17
Show Gist options
  • Save meconlin/2a3cdd6bcf44807259fc to your computer and use it in GitHub Desktop.
Save meconlin/2a3cdd6bcf44807259fc to your computer and use it in GitHub Desktop.
Cloudbees Jenkins build script for django and mysql
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