-
Notifications
You must be signed in to change notification settings - Fork 695
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 docker support #242
base: master
Are you sure you want to change the base?
Add docker support #242
Conversation
I really don't think it's convenient way to run this project. Yes, it's possible to docker'ize everything in the world, but docker designed for horizontal application scaling and CI. It's overcomplicated to use it for running just simple "single-use" python scripts. Also both docker and docker-compose project do require python to be installed - so this doesn't solve anything at all. |
Frankly, I was having a problem with my python installation, I used docker rather than fixing the python installation. Then, I thought, it maybe can help someone else too and I did MR. |
Honestly, I was revisiting this project , and I too was considering to dockerize the project and add a volume mount to make sure that the books get saved in our host machine. In any case, kudos for making this project! And I'm sure people would use it only for educational purposes :'3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend adding a .dockerignore
file. It can contain the following:
.git/
.gitignore
.README.md
Dockerfile
docker-compose.yml
LICENSE.md
I'm on a Mac, using Docker Desktop. I don't believe I have the correct version of Python to run this project so yes, this docker option is nice. And no, I don't think being able to run docker-compose means I have the correct Python on my host-OS already since docker is running in a VM (though I may be wrong). |
Without any special installation we will be able to download a book with the following command