script-runner
It will run any sh script file from any public url.
968
It will run script from any public url or local file.
SCRIPT_URL: Is used to specify script url.SCRIPT_PATH: Is used to specify local script file.DockerfileFROM techthinkerorg/script-runner:latest
WORKDIR /script
COPY ./your-script.sh /script/
ENV SCRIPT_PATH "your-script.sh"
or
FROM techthinkerorg/script-runner:latest
ENV SCRIPT_URL "script-location-url.sh"
docker build -f ./Dockerfile -t your-image-name .docker run your-image-namemyscript.sh file, then execute this command.docker run --rm -v "./myscript.sh:/script/myscript.sh" -e SCRIPT_PATH=myscript.sh techthinkerorg/script-runner:latest
docker-compose.yamlversion: "3"
services:
script:
container_name: script-runner
image: techthinkerorg/script-runner:latest
environment:
- SCRIPT_URL=script-location-url.sh
docker-compose upyour-deployment-corn.yamlapiVersion: batch/v1beta1
kind: CronJob
metadata:
name: your-deployment-cron
namespace: your-name-space
spec:
schedule: "*/5 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: your-deployment-cron
image: techthinkerorg/script-runner:latest
env:
- name: SCRIPT_URL
value: "script-location-url.sh"
restartPolicy: OnFailure
kubectl apply -f your-deployment-cron.yamlContent type
Image
Digest
sha256:5996c9421…
Size
4.1 MB
Last updated
over 2 years ago
docker pull techthinkerorg/script-runner:1.2.2