Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Examples

Run multiple containers using docker-compose

docker-compose is useful if you want to run more than one container at the same time, to generate more noise. To do so, simply run the following commands:

$ cd examples/docker-compose
$ docker-compose build
$ docker-compose up --scale noisy=<number-of-containers>

Set noisy to run automatically via systemd

You can use systemd to start noisy.py automatically on every boot. The provided example service assumes that you have the script copied to /opt/noisy and that noisy.py and config.json are readable by the 'noisy' user. You can change these values to suit your needs.

To configure the service:

$ sudo cp examples/systemd/noisy.service /etc/systemd/system
$ sudo systemctl daemon-reload
$ sudo systemctl enable noisy && sudo systemctl start noisy

You can view the script's output by running:

$ journalctl -f -n noisy