Last active
September 6, 2021 22:55
-
-
Save luketn/622d1541090b9cf6ecab28d51ccdfa74 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Switch to privileged user 'root' | |
sudo su | |
# Install Docker + git, enabling the docker process to start on boot | |
yum install -y docker git | |
systemctl enable --now docker | |
# Install Docker-Compose | |
curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose | |
chmod +x /usr/bin/docker-compose | |
# Download a template for running load tests | |
git clone https://github.com/luketn/docker-k6-grafana-influxdb.git | |
cd docker-k6-grafana-influxdb | |
# Start InfluxDB time-series database and Grafana visualisation dashboard | |
docker-compose up -d influxdb grafana | |
#TODO: Add an executable script 'load-test' which runs docker-run and a symbolic link to /etc/load-test/scripts from the code folder | |
# (Include the current IP address in the output to console so you can click the link) | |
# Run sample load test against the Star Wars API | |
docker-compose run k6 run /scripts/ewoks.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment