sansaid / debotbot

A Telegram bot for facilitating structured debates on Telegram
GNU General Public License v3.0
1 stars 0 forks source link

Fix Docker image for ARM architecture #11

Open sansaid opened 3 years ago

sansaid commented 3 years ago

When building the Docker image for the ARM architecture, it fails to run with the following error:

Error loading shared library libpython3.9.so.1.0: Operation not permitted (needed by /usr/local/bin/python)
Error relocating /usr/local/bin/python: Py_BytesMain: symbol not found

This is on a Raspberry Pi. Need to find out why. It's possible that I need to use a separate base image to the python:3.9-alpine for the AMD builds.

sansaid commented 3 years ago

This might be a good resource to use: https://withblue.ink/2019/07/13/yes-you-can-run-docker-on-raspbian.html

sansaid commented 3 years ago

Hmm.. Nah, the python:3.9-alpine image targets multiple architectures: https://hub.docker.com/layers/python/library/python/3.9-alpine/images/sha256-646ec1e84c404aa80307b77b8c85f5d955ed3914bfec4552c4bd95909ed1e9fe?context=explore

sansaid commented 3 years ago

Possible solution? https://github.com/docker-library/python/issues/489

sansaid commented 3 years ago

Another possible solution: https://github.com/docker/compose/issues/6292

sansaid commented 3 years ago

Could have something to do with the Docker installation: https://stackoverflow.com/questions/62011705/error-when-docker-compose-usr-local-bin-python-error-while-loading-shared-lib

sansaid commented 3 years ago

Test running the python:3.9-alpine image by itself