Files
robot-shop/load-gen/load-gen.sh

20 lines
391 B
Bash
Raw Normal View History

2018-02-06 15:51:43 -05:00
#!/bin/sh
2018-04-24 17:35:44 +01:00
# Changing the NUM_CLIENTS environment variable varies the load on the application
# The bigger the number the more requests, the bigger the load
2018-03-21 08:40:42 +00:00
# get the tag info
eval $(egrep '[A-Z]+=' ../.env)
echo "Repo $REPO"
echo "Tag $TAG"
2018-02-06 15:51:43 -05:00
docker run \
-it \
--rm \
2018-02-13 12:35:08 +00:00
--network=host \
-e 'HOST=http://localhost:8080' \
2018-04-24 17:35:44 +01:00
-e 'NUM_CLIENTS=1' \
2018-03-21 08:40:42 +00:00
${REPO}/rs-load:${TAG}
2018-02-06 15:51:43 -05:00