-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·12 lines (11 loc) · 1.25 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
docker exec faban_client sh -c "cd /web20_benchmark/build && java -jar Usergen.jar http://$(docker inspect --format '{{ .NetworkSettings.Networks.my_net.IPAddress }}' web_server):8080"
docker exec faban_client sh -c "sed -i 's/<fa:scale.*/<fa:scale>150<\\/fa:scale>/' /web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 's/<fa:rampUp.*/<fa:rampUp>10<\\/fa:rampUp>/' /web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 's/<fa:rampDown.*/<fa:rampDown>10<\\/fa:rampDown>/' /web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 's/<fa:steadyState.*/<fa:steadyState>500<\\/fa:steadyState>/' /web20_benchmark/deploy/run.xml"
WEB_SERVER_IP=$(docker inspect --format '{{ .NetworkSettings.Networks.my_net.IPAddress }}' web_server)
docker exec faban_client sh -c "sed -i 's/<host.*/<host>$WEB_SERVER_IP<\\/host>/' /web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 's/<port.*/<port>8080<\\/port>/' /web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "sed -i 's/<outputDir.*/<outputDir>\/faban\/output<\\/outputDir>/' /web20_benchmark/deploy/run.xml"
docker exec faban_client sh -c "cd /web20_benchmark && ant run"
docker exec faban_client sh -c "cat /faban/output/*/summary.xml" > summary.xml