Sign inSign up

kyyq/cronicle-python-plugin

By kyyq

Updated almost 2 years ago

cronicle image with python scripts support

Image
Integration & delivery
Monitoring & observability
0

178

kyyq/cronicle-python-plugin repository overview

Adding a new Python script to run

  • Open Cronicle console
  • Go to Schedule > [+] Add event...
  • Create the job as:
    • Plugin: Python Script.
    • Script code: insert content of your .py
    • Required packages (not required): the same content of your requirements.txt file, each package in a line (with ==<version> if needed).
    • Environment variables (not required): environment variables, one per line, in the format of a .env file (i.e. AWS_REGION=us-east-1)
    • Parameters (not required): single string of script parameters (i.e. --v -f file.txt)

Compose:

version: "3"

services:

  cronicle:
    image: kyyq/cronicle-python-plugin:0.9.46
    hostname: cronicle
    ports:
      - 3012:3012
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - cronicle_data:/opt/cronicle/data
      - cronicle_logs:/opt/cronicle/logs
      - cronicle_plugins:/opt/cronicle/plugins
    extra_hosts:
      - "cronicle.lab.io:0.0.0.0"
    healthcheck:
      test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider localhost:3012/api/app/ping || exit 1"]
      interval: 5s
      timeout: 1s
      retries: 3
    logging:
        driver: "json-file"
        options:
            max-size: "10m"

volumes:
  cronicle_data:
  cronicle_logs:
  cronicle_plugins:

Tag summary

Content type

Image

Digest

sha256:989674800

Size

83.5 MB

Last updated

almost 2 years ago

docker pull kyyq/cronicle-python-plugin:0.9.46