-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simple Docker integration #2569
base: master
Are you sure you want to change the base?
Conversation
I've just tested this (first time epg user) and I have two remarks:
Command:
Output:
|
Hey @jansohn Regarding your problem with the absolute channel path: This seems to be an issue with the script itself, because also giving an absolute channel path directly leads to the same issue: npm run grab --- --channels=/Users/michael/Projects/epg/channels.
xml
> grab
> npx tsx scripts/commands/epg/grab.ts --channels=/Users/michael/Projects/epg/channels.xml
starting...
config:
output: guide.xml
maxConnections: 5
gzip: false
channels: /Users/michael/Projects/epg/channels.xml
loading channels...
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, open 'Users/michael/Projects/epg/channels.xml'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'Users/michael/Projects/epg/channels.xml'
}
Node.js v20.14.0 You should maybe create a dedicated bug ticket for that :) |
Similar to https://github.com/iptv-org/epg/pull/2488/files this is a working, slim
Dockerfile
configuration to run the script inside docker.I made a small change on the script itself to accept also environment vars for the
grab
script instead of providing options. (e.g. you can use nowSITE=example.com npm run grab
instead ofnpm run grab --- --site=example.com
) This is not only a convenient feature but it helps also dramatically to configure the docker container accordingly.I did not yet include some sort of GitHub Action to build and publish a ready-to-use image but if that's something that you guys want I can also add that (I will do it anyways in my fork of the repo)