Created
September 29, 2015 11:38
-
-
Save netmarkjp/f9dc2ccc9eb1ec6caa25 to your computer and use it in GitHub Desktop.
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
# GCEでUbuntu 15.04 | |
sudo su - | |
apt-get update && apt-get -y install ansible jq | |
git clone https://github.com/isucon/isucon5-qualify.git | |
cd isucon5-qualify/ | |
cd gcp/bench/ansible/ | |
sed -i 's/- copy/#- copy/' 00_devel.yml | |
sed -i 's@key_file=.*@@' 06_deploy_bench_tool.yml | |
sed -i 's@repo=.*@repo=https://github.com/isucon/isucon5-qualify.git@' 06_deploy_bench_tool.yml | |
echo localhost ansible_connection=local > local | |
ansible-playbook -i local 00_devel.yml 01_isucon_base.yml 02_xbuild_part.yml 06_deploy_bench_tool.yml | |
systemctl stop agent.ruby | |
systemctl disable agent.ruby | |
echo "/dev/sda1 / ext4 defaults 0 0" > /etc/fstab | |
su - isucon | |
bash | |
cd isucon5-qualify/bench/ | |
gradle compileJava | |
source ~/env.bench.sh | |
export TARGET_IP="10.240.236.162" | |
jq ".[`expr $RANDOM % 30`]" < ../eventapp/testsets.json | gradle -q run -Pargs="net.isucon.isucon5q.bench.scenario.Isucon5Qualification ${TARGET_IP:?}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
嘘でした。そんなことはなくランダムだった。