Go to file
Paolo Asperti a569e48273
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
added bitwarden and migrated to debian
2022-10-20 23:30:03 +02:00
docker added bitwarden and migrated to debian 2022-10-20 23:30:03 +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 added bitwarden and migrated to debian 2022-10-20 23:30:03 +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
      - ./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