GithubHelp home page GithubHelp logo

robertdigital / docker-packt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ghostwriters/docker-packt-cli

0.0 1.0 0.0 46 KB

Packt daily claim and download script container

License: MIT License

Shell 86.79% Dockerfile 13.21%

docker-packt's Introduction

Container for Packt daily download script

GitHub contributors GitHub last commit master GitHub license GitHub Workflow Status

This creates a Alpine Linux docker container running running cron, scheduled to claim the daily free book once per night at 1am. For more information about what this container calls visit https://github.com/packt-cli/Packt-Publishing-Free-Learning.

Run

Run with:

docker run -d \
  --name=packt --rm \
  -e PACKT_EMAIL=<[email protected]> \
  -e PACKT_PASSWORD=<password> \
  -e PACKT_DOWNLOAD_FORMATS=pdf, epub, mobi, code \
  -e PACKT_ANTICAPTCHA_KEY=<key> \
  -e PUID=<UID> \
  -e PGID=<GID> \
  -e TZ=<timezone> \
  -v /home/user/packt/config:/config \
  -v /home/user/packt/books:/data \
  --restart unless-stopped \
  ghostwriters/docker-packt

Volumes and variables

Volumes:

  • /config, where the configFile.cfg and log file are placed
  • /data, where files are downloaded to

OPTIONAL: Variables:

  • PACKT_EMAIL - email address registered with Packt account
  • PACKT_PASSWORD - password for Packt account
  • PACKT_DOWNLOAD_FORMATS - pdf, epub, mobi, code
  • PACKT_ANTICAPTCHA_KEY - get an api key from https://anti-captcha.com
  • PACKT_DOWNLOAD_BOOK_TITLES - specify individual books

If variables are set, they overwrite what is already in the configFile.cfg file at container startup. If not set, the config file will be left alone.

Anticaptcha key required to download the daily book.

Special Thanks

docker-packt's People

Contributors

tommye123 avatar biwhite avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.