Go to file
2022-10-19 22:44:42 +02:00
docker don't update crontab file if ENV missing 2022-10-19 22:44:42 +02:00
.drone.yaml added cron and branch build 2022-09-20 11:56:23 +02:00
.gitignore Initial commit 2022-09-20 08:48:15 +00:00
LICENSE Initial commit 2022-09-20 08:48:15 +00:00
README.md timezone support 2022-09-21 08:38:29 +02: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
    environment:
      TZ: Europe/Rome
      CRONTAB: >
        */5 7-22 * * * /scripts/test.py
        */10 7-22 * * * /scripts/test2.py        
mkdir scripts logs
touch scripts/test.py && chmod +x scripts/test.py
touch scripts/test2.py && chmod +x scripts/test2.py
docker-compose up -d