-
Notifications
You must be signed in to change notification settings - Fork 186
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
Docker #203
Comments
@ranrinc Good idea! maybe you can create it :) ? |
My little weird setup with podman…
and init.sh #!/bin/bash
# grab new ebooks from site
{ date +%F; packt-cli -gd -f; } >> /srv/log/packt.log
# check if first day of month, and before noon, if so download ebooks
[[ $(date +%-d) -eq 1 ]] && [[ $(date +%-H) -lt 12 ]] && packt-cli -da -f >> /srv/log/packt.log
rm LOG_FILE.log As it is a podman I don't care if it run as root inside a container. I run that on schedule twice a day in case some error occur with anticaptcha, timeout or no free bots And I locally rebuild image in case there was some update to packt-cli |
@Tokariew is it working? would love to test it. Is there a way to get away with alpine instead of fedora? How do you setup to run on docker? Any chances in uploading to Gdrive? |
Yes it is working for me for the last 1.5 year… Only changed fedora version on which is based. I run it with podman instead of docker.
After running that for the first time I generate systemd service file with
and write systemd timer for it. |
minimalistic Dockerfile
example of how to run it:
configFile.cfg and client_secret.json should be placed in mounted volume, that way it can be publish on registry and not only build locally to upload to Google Drive you can copy existing working
after first time it can be run without |
Will you create Dockerfile in the future?
The text was updated successfully, but these errors were encountered: