Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dudeperf3ct/3-github-actions-docker

Repository files navigation

Github Actions with Docker

GH Docker Compose with locust load testing

In the exercise, we will implement the following.

  1. Containerize a GitHub project by integrating a Dockerfile and automatically registering new containers to a Container Registry.

  2. Create a simple load test for your application using a load test framework such as locust or loader io and automatically run this test when you push changes to a staging branch.

One of the reason job can fail is mismatch between ip provided by flask and the one passed to locust.

Check if

in github actions build log

web_1     |  * Running on http://172.18.0.2:8000/ (Press CTRL+C to quit)

and in docker-compose.yml

command: -f /app/locustfile.py --host=http://172.18.0.2:8000/ --headless -u 1000 -r 100 -t 10s

are same.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published