Go to file
Paolo Asperti febac4d60f
continuous-integration/drone/push Build is passing Details
timezone support
2022-09-21 08:38:29 +02:00
docker timezone support 2022-09-21 08:38:29 +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

README.md

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