This is a docker image for running daniel-widrick/zap2it-GuideScraping in an automated way.
- Running of zap2it-GuideScrape.py
- Docker Compose examples
- Removal of historical xmlguide files
- Healthcheck.io integration
- Run once, or forever based on sleep time
- 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
- Create a
zap2itconfig.ini
file. Check daniel-widrick/zap2it-GuideScraping's repo for more info on that. - Make sure your output directory exists. I
/data
for example. - Run the thing
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/itsamenathan/zap2it:main
version: '3'
services:
zap2it:
image: ghcr.io/itsamenathan/zap2it:main
volumes:
- ./data:/data
environment:
CONFIGFILE: "/data/zap2itconfig.ini"
OUTPUTFILE: "/data/xmlguide.xmltv"
HEALTHCHECK_URL: "https://hc-ping.com/UUID"
user: "1000:1000"
The only difference is adding the SLEEPTIME
variable.
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/itsamenathan/zap2it:main
version: '3'
services:
zap2it:
image: ghcr.io/itsamenathan/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"
Running with ofelia
Ofelia can run a docker container on a schedule for you.
Check out the docker-compose.ofelia.yml for reference.