Skip to content

Commit

Permalink
update locust version
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwalker committed Feb 21, 2024
1 parent 5961c52 commit 5ed0f03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion locust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM locustio/locust:2.5.0
FROM locustio/locust:2.23.1

LABEL org.opencontainers.image.source=https://github.com/base2Services/build-containers

Expand Down
10 changes: 6 additions & 4 deletions locust/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ if [ ${1} = "locust" ] ; then
exit 1
fi

LOCUST_OPTS="-f ${LOCUST_FILE} --host=${TEST_HOST_URL} --no-reset-stats $LOCUST_OPTS"
LOCUST_OPTS="--host=${TEST_HOST_URL} --no-reset-stats $LOCUST_OPTS"

case `echo ${LOCUST_MODE} | tr 'a-z' 'A-Z'` in
"MASTER")
LOCUST_OPTS="--master --master-bind-port=${LOCUST_MASTER_BIND_PORT} $LOCUST_OPTS"
echo "Setting master node config"
LOCUST_OPTS="-f ${LOCUST_FILE} --master --master-bind-port=${LOCUST_MASTER_BIND_PORT} $LOCUST_OPTS"
;;

"SLAVE")
LOCUST_OPTS="--slave --master-host=${LOCUST_MASTER} --master-port=${LOCUST_MASTER_BIND_PORT} $LOCUST_OPTS"
"WORKER")
echo "Setting worker node config"
LOCUST_OPTS="-f - --worker --master-host=${LOCUST_MASTER} --master-port=${LOCUST_MASTER_BIND_PORT} --processes -1 $LOCUST_OPTS"
if [ -z ${LOCUST_MASTER+x} ] ; then
echo "You need to set LOCUST_MASTER."
exit 1
Expand Down

0 comments on commit 5ed0f03

Please sign in to comment.