Packtpub has an amazing initiative: every day it publishes a free technology ebook. The downside is that you have to remember to login and add it to your library. Not anymore (if you put this in crontab).
This image has 2 mandatory environment variables for PacktPub login:
PP_EMAIL
PP_PASSWORD
Additionally, if you want to receive a notification on pushbullet (how to get an access token is outside the scope of this document), you can set:
PB_EMAIL
PB_TOKEN
Basic Example (just get the ebook)
docker run --rm -e PP_EMAIL=my@email.com -e PP_PASSWORD=myP455 elisiano/packtpub-free-learning
Example with pushbullet
docker run --rm -e PP_EMAIL=my@email.com -e PP_PASSWORD=myP455 -e PB_EMAIL=my@email.com PB_TOKEN=myT0k3n elisiano/packtpub-free-learning
I am not the original author of the script, I just parametrized it and dockerized it.
Want to improve this? Pull requests are very welcome! http://github.com/elisiano/docker-packtpub-free-learning