Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hazim1093/dumb-exit
Random Dockerfile for randomly exiting with a random exit code after a random time interval.
https://github.com/hazim1093/dumb-exit
container docker docker-container dockerfile dumb dumb-init exit exitcode exiting random
Last synced: about 1 month ago
JSON representation
Random Dockerfile for randomly exiting with a random exit code after a random time interval.
- Host: GitHub
- URL: https://github.com/hazim1093/dumb-exit
- Owner: hazim1093
- License: apache-2.0
- Created: 2017-10-10T06:46:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T07:42:48.000Z (about 7 years ago)
- Last Synced: 2024-01-12T11:53:48.681Z (12 months ago)
- Topics: container, docker, docker-container, dockerfile, dumb, dumb-init, exit, exitcode, exiting, random
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dumb Exit
Random Dockerfile for randomly exiting a random container with a random exit code after a random time interval.
### Tags:
* [1.0, latest](1.0)
### Usage:
This docker image can be used for the purpose of testing an application or component's behavior, which deals with docker containers that run and exit.
With this you can easily test exiting docker containers in your application/setup.#### Note: The probability of the container to exit with exit code 0 is 50% on purpose.
```
docker run -d hazim/dumb-exit
```With custom lower and upper limits for random wait:
```
docker run -d -e WAIT_LOWER_LIMIT=20 -e WAIT_UPPER_LIMIT=30 hazim/dumb-exit
```With custom lower and upper limits of exit codes:
```
docker run -d -e EXIT_CODE_LOWER_LIMIT=1 -e EXIT_CODE_UPPER_LIMIT=5 hazim/dumb-exit
```With custom exit code and no random randomness ( :( ):
```
docker run -d -e EXIT_CODE=0 hazim/dumb-exit;
```