run the cpuburn utility in a container using the [do-framework](https://bit.ly/do-framework)
934
The cpuburn utility is a way to stress test cpu cores on the machine where the utility runs.
The following commands burn all cpu cores for 20 seconds, sleep for 10 seconds, then repeat.
docker run -it --rm iankoulski/cpuburn
or
git clone https://github.com/iankoulski/cpu-burn
cd cpu-burn
./build.sh
./run.sh
git clone https://github.com/iankoulski/cpu-burn
cd cpu-burn
./build.sh
./push.sh
sed -i 's/export TO=docker/export TO=kubernetes/g' .env
./run.sh
Burn all cores
docker run -it --rm iankoulski/cpuburn cpuburn
Burn 1 core
docker run -it --rm iankoulski/cpuburn cpuburn -n 1
This is a Depend on Docker project which comes operational out of the box and is configured with reasonable defaults, which can be customized as needed.
The project contains the following scripts:
config.sh - open the configuration file .env in an editor so the project can be customizedbuild.sh - build the container imagetest.sh - run container unit testspush.sh - push the container image to a registrypull.sh - pull the container image from a registryrun.sh [cmd] - run the container, passing an argument overrides the default commandstatus.sh - show container status - running, exited, etc.logs.sh - tail container logsexec.sh [cmd] - open a shell or execute a specified command in the running containerContent type
Image
Digest
sha256:d3d66be51…
Size
335.2 MB
Last updated
about 1 year ago
docker pull iankoulski/cpuburn