https://github.com/robotnikautomation/robot_stresser_container
Robot Stresser image
https://github.com/robotnikautomation/robot_stresser_container
containers docker docker-compose
Last synced: 2 months ago
JSON representation
Robot Stresser image
- Host: GitHub
- URL: https://github.com/robotnikautomation/robot_stresser_container
- Owner: RobotnikAutomation
- License: bsd-3-clause
- Created: 2024-10-24T15:03:10.000Z (over 1 year ago)
- Default Branch: devel
- Last Pushed: 2024-10-24T16:30:53.000Z (over 1 year ago)
- Last Synced: 2025-02-09T09:29:16.890Z (over 1 year ago)
- Topics: containers, docker, docker-compose
- Language: Dockerfile
- Homepage: https://robotnik.eu
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Robot Stresser Container
## Overview
The Robot Stresser Container is a Docker-based tool designed to stress test robot CPUs by simulating various workloads. It's essential for evaluating the performance and reliability of robotic systems under different conditions.
## Features
- Configurable base image and version
- Customizable CPU count for stress testing
- Tini integration as an init system
- Utilizes the `stress` tool (renamed to `ros2`) for system load generation
- Flexible command-line options for tailored stress tests
## Quick Start
1. Clone the repository:
```bash
git clone https://github.com/RobotnikAutomation/robot_stresser_container.git
cd robot_stresser_container
```
2. Build and run the container:
```bash
docker compose build
docker compose up
```
## Usage
### Basic Stress Test
Run a basic stress test using Docker Compose:
```bash
docker compose up
```
### Custom Stress Test
Modify the `command` in `build.yaml` to customize the stress test parameters:
```yaml
command:
- --timeout
- "3"
- --cpu
- "1"
- --vm-bytes
- "10"
```
### Environment Variables
- `CPU`: Set the number of CPUs to stress (overrides the default)
### Entrypoint
The container uses an entrypoint script (`entrypoint.sh`) that allows for flexible command execution. If no arguments are provided, it defaults to stressing the number of CPUs specified by the `CPU` environment variable.
## Maintenance and License
- Maintainer: Guillem Gari from Robotnik Automation S.L.
- License: BSD-3-Clause