paspo 4f9dd8f51f
Some checks failed
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (arm64) (push) Successful in 2m1s
Container Publish / build-image (amd64) (push) Successful in 4m7s
Container Publish / update docker manifest (push) Successful in 10s
Vulnerability Scan / Daily Vulnerability Scan (arm64) (push) Failing after 36s
Vulnerability Scan / Daily Vulnerability Scan (amd64) (push) Failing after 2m1s
switched from drone to gitea actions
2025-06-13 08:30:10 +02:00
2025-06-13 08:30:10 +02:00
2022-09-20 08:48:15 +00:00
2022-09-20 08:48:15 +00:00

docker-python-runner

Build Status

Base docker container for running python scripts.

usage

version: '3.6'
services:
  runner:
    image: docker.asperti.com/paspo/python-runner:latest
    container_name: python-scripts
    restart: unless-stopped
    volumes:
      - ./scripts:/scripts
      - ./logs:/var/log
      - ./crontabs:/etc/cron.d:ro
    environment:
      TZ: Europe/Rome
mkdir scripts logs crontabs
touch scripts/test.py && chmod +x scripts/test.py
touch scripts/test2.py && chmod +x scripts/test2.py
cat <<EOF >crontabs/myscripts
*/5 7-22 * * * /scripts/test.py
*/10 7-22 * * * /scripts/test2.py
EOF
docker-compose up -d
Description
No description provided
Readme GPL-3.0 57 KiB
Languages
Dockerfile 92.8%
Shell 7.2%