Executes wget in a timeboxed fashion. That means it uses timeout
to run wget
with a time limit of x seconds.
timeout
- determines the default time limit to be used if no environment SECS
is passed at container runtime.
git clone [email protected]:jometzner/wget.git
docker build wget -t test:local
❯ docker run --rm 31099/wget:alpine-3.20 --version
Start wget to fetch for 3600 seconds
GNU Wget 1.21.3 built on linux-musl.
Run docker image wget
tag alpine-3.20
from my docker hub account to print version information. The value of time limit of 3600 seconds is the image default that you can override via --env SECS=10
❯ docker run --env SECS=10 --rm 31099/wget:alpine-3.20 --version
Start wget to fetch for 10 seconds
GNU Wget 1.21.3 built on linux-musl.