CBPm Implementation Of The EXODDOS Framework
228
Enterprise-Grade Python Load/Performance Testing Framework
pip install -r requirements.txtlocust --config exoddos.conf to launch the frameworkOne-Time Commands
docker build -t exoddos:1.5.2 .docker run -it --name exoddos -p 5557:5557 -p 8089:8089 exoddos:1.5.2Reuse exoDDoS Container
docker start -ai exoddosdocker stop exoddosUtility Docker Commands
docker images --alldocker ps --allRun As Debug User
It is possible to run exoDDoS as a single ephemeral user, for debugging purposes, which overrides the credentials file referenced in the codebase.
To do so from a Docker container, append the -e debug-user="USERNAME" and -e debug-pass="PASSWORD" flags while executing the run command for the Docker container.
Running exoDDoS as a debug user without Docker requires setting a pair of environment variables for the current terminal session, however achieving this depends on the shell in use. For instance, in PowerShell, the syntax would be $ENV:debug-user="USERNAME" and, respectively, $ENV:debug-pass="PASSWORD".
Run With GrayLog Integration Support
To integrate with GrayLog from a Docker container, append the -e use-graylog="true", -e graylog-ip="IP" and -e graylog-port="PORT" flags while executing the run command for the Docker container.
Clean Installation
pip install --upgrade pippip freeze > snapshot.txtpip uninstall -r snapshot.txt -ypip install -r requirements.txtUpdate Requirements
pip install --upgrade pippip freeze > snapshot.txtpip uninstall -r snapshot.txt -ypip install locustpip freeze > requirements.txtUpdating the requirements as per the steps above will convert the requirements file to UCS-2 LE BOM (UNICODE) format so make sure to convert it back to UTF-8 without BOM (ASCII) format, otherwise some GIT clients will see it as a binary file rather than a text file and won't be able to properly resolve the deltas. Alternatively, update the requirements by executing pip freeze | Out-File -Encoding ASCII requirements.txt.
Prune All Local Docker Data
To start fresh in Docker, execute docker system prune --all --volumes and then type y when prompted to. Make sure to read carefully what you are pruning, as this will delete all stopped containers, all networks not used by at least one container, all volumes not used by at least one container, all images without at least one container associated to them and all build cache.
Accessing The WEB UI
By default, the WEB UI runs on http://:8089 which makes http://localhost:8089 available even when running exoDDoS from within a Docker container. Setting the --web-host config flag for the framework to a custom IP address may require additional Docker image configuration in order to be able to access the WEB UI for an instance of exoDDoS running inside a Docker container.
Content type
Image
Digest
Size
348.3 MB
Last updated
almost 6 years ago
docker pull stackworks/exoddos-cbpm