diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-06-18 10:46:24 +0200 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-06-18 10:46:24 +0200 |
commit | 2b49706f1f59487c7e15b900229e10b410072572 (patch) | |
tree | 0b9f8efd011c9a4e076b7f86ccf96192f6045869 /scripts | |
parent | b6688f830b5e83ed670f061e619f96487ac8a6a2 (diff) | |
download | gitlab-ce-2b49706f1f59487c7e15b900229e10b410072572.tar.gz |
Move prepare_build script to scripts dir.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/prepare_build.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh new file mode 100644 index 00000000000..5525ab77435 --- /dev/null +++ b/scripts/prepare_build.sh @@ -0,0 +1,24 @@ +#!/bin/bash +if [ -f /.dockerinit ]; then + wget -q http://ftp.de.debian.org/debian/pool/main/p/phantomjs/phantomjs_1.9.0-1+b1_amd64.deb + dpkg -i phantomjs_1.9.0-1+b1_amd64.deb + + apt-get update -qq + apt-get install -y -qq libicu-dev libkrb5-dev cmake nodejs + + cp config/database.yml.mysql config/database.yml + sed -i 's/username:.*/username: root/g' config/database.yml + sed -i 's/password:.*/password:/g' config/database.yml + sed -i 's/# socket:.*/host: mysql/g' config/database.yml + + cp config/resque.yml.example config/resque.yml + sed -i 's/localhost/redis/g' config/resque.yml + FLAGS=(--deployment --path /cache) + export FLAGS +else + export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin + cp config/database.yml.mysql config/database.yml + sed "s/username\:.*$/username\: runner/" -i config/database.yml + sed "s/password\:.*$/password\: 'password'/" -i config/database.yml + sed "s/gitlabhq_test/gitlabhq_test_$((RANDOM/5000))/" -i config/database.yml +fi |