alexgand / springer_free_books

Python script to download all Springer books released for free during the 2020 COVID-19 quarantine
GNU General Public License v3.0
1.64k stars 366 forks source link

Problem with Docker/Raspberry Pi #99

Open kunggom opened 4 years ago

kunggom commented 4 years ago

I ran out of storage space on my MacBook, so I tried running this script on my Raspberry Pi instead. I was using Docker on my Raspberry Pi, So I decided to choose a way to create a Docker image by Dockerfile. However, this method failed.

After reviewing the log, I realized that some packages defined in requirements.txt had to be compiled to work in my environment. However, the base image applied to the Dockerfile is a "slim" version that lacks some elements needed for compiles. That's the cause of the error. So I solved the problem by changing the base image from python:3.8-slim-buster to python:latest. The Docker image created in this way took a long time to create, but it worked perfectly on my Raspberry Pi.

However, this simple solution has a little problem. The size of the pulled image becomes quite large. Therefore, this solution may be inconvenient for some people. This script is used to download a large amount of data, but it would still be better to have less download capacity. So I want to discuss this.

My environment: