Skip to content

rouralberto/SiestaBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SiestaBox

A Docker Image that simulates long-running tasks on demand

What is SiestaBox?

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.

How Does SiestaBox Work?

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.

Usage

# Run with default timeout (10 seconds)
docker run roura/siestabox

# Run with custom timeout (e.g., 20 seconds)
docker run -e TIMEOUT=20 roura/siestabox

Sample Output

Task started, taking a siesta for the next 20 seconds...
Task completed. Buenos días.

Build Locally

# 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

About

A Docker Image that simulates long-running tasks on demand

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors