Skip to content

vember31/zap2it-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zap2it

This is a docker image for running daniel-widrick/zap2it-GuideScraping in an automated way.

** 3/30/2025: Note that the latest 'main' container build includes the fix to point the script at the guide's new home on gracenote.com. There is a PR for the repo above to fix this and I compiled this image against that PR since it hasn't been merged as of me writing this. A big thanks to those who figured out the guide now lives at gracenote.com and that a simple subsitution of zap2it.com > gracenote.com allows this script to keep running like before :) **

Features

  • Running of zap2it-GuideScrape.py
  • Docker Compose examples
  • Removal of historical xmlguide files
  • Healthcheck.io integration
  • Run once, or forever based on sleep time

Environment Variables Options

  • CONFIGFILE: [string]
    • Location of your config file.
    • default: /data/zap2itconfig.ini
  • OUTPUTFILE: [string]
    • Location where you want the output file to be placed.
    • default: /data/xmlguide.xmltv
  • HEALTHCHECK_URL: [string]
    • URL to ping when starting and ending the run.
    • default: undefined
  • SLEEPTIME: [int]
    • Number of seconds to sleep before running again.
    • default: undefined

Running

  1. Create a zap2itconfig.ini file. Check daniel-widrick/zap2it-GuideScraping's repo for more info on that.
  2. Make sure your output directory exists. I /data for example.
  3. Run the thing

Only Once

docker cli

docker run
  -v $(PWD)/data:/data
  -e CONFIGFILE=/data/zap2itconfig.ini
  -e OUTPUTFILE=/data/xmlguide.xmltv
  -e HEALTHCHECK_URL=https://hc-ping.com/UUID
  --user 1000:1000
  ghcr.io/vember31/zap2it:main

docker-compose.yml

version: '3'
services:
  zap2it:
    image: ghcr.io/vember31/zap2it:main
    volumes:
      - ./data:/data
    environment:
      CONFIGFILE: "/data/zap2itconfig.ini"
      OUTPUTFILE: "/data/xmlguide.xmltv"
      HEALTHCHECK_URL: "https://hc-ping.com/UUID"
    user: "1000:1000"

Running Continually

The only difference is adding the SLEEPTIME variable.

docker cli

docker run
  -v $(PWD)/data:/data
  -e CONFIGFILE=/data/zap2itconfig.ini
  -e OUTPUTFILE=/data/xmlguide.xmltv
  -e HEALTHCHECK_URL=https://hc-ping.com/UUID
  -e SLEEPTIME=43200
  --user 1000:1000
  ghcr.io/vember31/zap2it:main

docker-compose.yml

version: '3'
services:
  zap2it:
    image: ghcr.io/vember31/zap2it:main
    volumes:
      - ./data:/data
    environment:
      CONFIGFILE: "/data/zap2itconfig.ini"
      OUTPUTFILE: "/data/xmlguide.xmltv"
      HEALTHCHECK_URL: "https://hc-ping.com/UUID"
      SLEEPTIME: 43200
    user: "1000:1000"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Shell 88.8%
  • Dockerfile 11.2%