A Docker Image that simulates long-running tasks on demand
SiestaBox is a lightweight Docker image built on Alpine Linux, designed to simulate time delays. It's perfect for testing application behavior under specific time conditions or for any scenario where you need a reliable tool for time simulation.
SiestaBox operates simply by sleeping for a specified duration. You can customize the sleep duration by setting the TIMEOUT environment variable. If no value is provided, SiestaBox defaults to a 10-second delay.
# Run with default timeout (10 seconds)
docker run roura/siestabox
# Run with custom timeout (e.g., 20 seconds)
docker run -e TIMEOUT=20 roura/siestaboxTask started, taking a siesta for the next 20 seconds...
Task completed. Buenos días.
# Clone the repository
git clone https://github.com/yourusername/siestabox.git
cd siestabox
# Build the Docker image
docker build -t siestabox .
# Run the image
docker run siestabox