Go to file
Paolo Asperti 036592473b
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
better entrypoint, crontab in env
2022-09-20 12:53:35 +02:00
docker better entrypoint, crontab in env 2022-09-20 12:53:35 +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 better entrypoint, crontab in env 2022-09-20 12:53:35 +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:
      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