Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Fixes: docker-compose in manual mode broken by the previous commit', …
Browse files Browse the repository at this point in the history
…reports
  • Loading branch information
scherniavsky committed Jun 14, 2018
1 parent adc2083 commit 3db1945
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,20 @@ EOF
rm -rf reports

echo "Deploy Locust application locally"

if $AUTOMATIC; then
ABORT_ON_EXIT="--abort-on-container-exit"
else
echo "Getting the Locust application ready on http://<docker-host-ip-address>:8089"
fi

(export IMAGE=$IMAGE && export TARGET_HOST=$TARGET && export LOCUST_FILE=$LOCUST_FILE && export SLAVE_NUM=$SLAVES &&
export AUTOMATIC=$AUTOMATIC && export USERS=$USERS && export HATCH_RATE=$HATCH_RATE &&
export DURATION=$DURATION && export OAUTH=$OAUTH && URL=$URL && export SEND_ANONYMOUS_USAGE_INFO=$KPI &&
export SCOPES=$SCOPES && export BUILD_URL=$BUILD_URL && docker-compose up --abort-on-container-exit)
export SCOPES=$SCOPES && export BUILD_URL=$BUILD_URL && docker-compose up $ABORT_ON_EXIT)

if $AUTOMATIC; then
sleep $DURATION
docker cp docker_locusts_controller:/opt/reports .
else
echo "Locust application is successfully deployed. you can access http://<docker-host-ip-address>:8089"
fi

else
Expand Down

0 comments on commit 3db1945

Please sign in to comment.