Skip to content
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

Problem with Docker/Raspberry Pi #99

Open
kunggom opened this issue May 12, 2020 · 0 comments
Open

Problem with Docker/Raspberry Pi #99

kunggom opened this issue May 12, 2020 · 0 comments

Comments

@kunggom
Copy link

kunggom commented May 12, 2020

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:

  • Raspberry Pi 4 Model B 4GB (aarch64)
  • Ubuntu Linux 20.04 LTS (Focal Fossa) 64-bit
  • Docker 19.03.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant