{"id":15662181,"url":"https://github.com/peter-evans/locust-docker","last_synced_at":"2025-05-06T00:02:36.949Z","repository":{"id":23753696,"uuid":"77036003","full_name":"peter-evans/locust-docker","owner":"peter-evans","description":"Docker image for the Locust load testing tool and sample Kubernetes configuration files for distributed deployment.","archived":false,"fork":false,"pushed_at":"2022-01-28T03:38:13.000Z","size":93,"stargazers_count":20,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T12:42:06.535Z","etag":null,"topics":["docker-image","kubernetes","load-testing","locust","locust-docker","locustfile","stress-testing"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/peterevans/locust/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peter-evans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2016-12-21T09:10:19.000Z","updated_at":"2024-05-07T11:27:00.000Z","dependencies_parsed_at":"2022-08-02T20:30:46.978Z","dependency_job_id":null,"html_url":"https://github.com/peter-evans/locust-docker","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Flocust-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Flocust-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Flocust-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-evans%2Flocust-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peter-evans","download_url":"https://codeload.github.com/peter-evans/locust-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252596399,"owners_count":21773844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","kubernetes","load-testing","locust","locust-docker","locustfile","stress-testing"],"created_at":"2024-10-03T13:30:30.433Z","updated_at":"2025-05-06T00:02:36.909Z","avatar_url":"https://github.com/peter-evans.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Locust Docker\n[![](https://images.microbadger.com/badges/image/peterevans/locust.svg)](https://microbadger.com/images/peterevans/locust)\n[![CircleCI](https://circleci.com/gh/peter-evans/locust-docker/tree/master.svg?style=svg)](https://circleci.com/gh/peter-evans/locust-docker/tree/master)\n\nDocker image for the [Locust](http://locust.io/) load testing tool and sample Kubernetes configuration files for distributed deployment.\n\n## Supported tags and respective `Dockerfile` links\n\n- [`1.6.4`, `1.6`, `latest`, `1.6.4-locustio0.14.6`, `1.6-locustio0.14.6`, `latest-locustio0.14.6`  (*1.6/Dockerfile*)](https://github.com/peter-evans/locust-docker/tree/v1.6.4)\n- [`1.6.3`, `1.6.3-locustio0.14.5`, `1.6-locustio0.14.5`, `latest-locustio0.14.5`  (*1.6/Dockerfile*)](https://github.com/peter-evans/locust-docker/tree/v1.6.3)\n- [`1.6.2`, `1.6.2-locustio0.14.4`, `1.6-locustio0.14.4`, `latest-locustio0.14.4`  (*1.6/Dockerfile*)](https://github.com/peter-evans/locust-docker/tree/v1.6.2)\n- [`1.6.1`  (*1.6/Dockerfile*)](https://github.com/peter-evans/locust-docker/tree/v1.6.1)\n\n## Usage\nThe Docker image can be run standalone by passing a URL to your locustfile:\n\n```bash\ndocker run -d -p 8089:8089 \\\n-e LOCUST_LOCUSTFILE_URL='https://example.com/locustfile.py' \\\n-e LOCUST_TARGET_HOST='http://example.com' \\\n--name locust peterevans/locust:latest\n```\nThen point your web browser to [http://localhost:8089/](http://localhost:8089/)\n\n## Kubernetes Deployment\n\n1. Create a ConfigMap containing your locustfile.py and its dependencies. The command below creates a ConfigMap containing files placed in the local directory `locust-tasks`.\n\n\t```bash\n\tkubectl create configmap locust-configmap --from-file=locust-tasks/\n\t```\n\n2. Edit the deployment configuration files and set environment variable `LOCUST_TARGET_HOST`.\n\n3. Deploy the master and slave deployments.\n\n\t```bash\n    kubectl create -f ./locust-master.yaml\n    kubectl create -f ./locust-slave.yaml\n    ```\n\n## License\n\nMIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-evans%2Flocust-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter-evans%2Flocust-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-evans%2Flocust-docker/lists"}