HassaanTS / hdbpp-timescale-compiled

A simple Dockerfile to containerize and build the binaries of https://github.com/tango-controls-hdbpp/hdbpp-timescale-project
0 stars 0 forks source link

Problem with docker on Raspberry Pi 4, Debian bullseye #1

Open TacHuynh opened 3 years ago

TacHuynh commented 3 years ago

Ran into a problem on Raspberry Pi 4, Debian bullseye. Which linux are you running this docker on? amd86 or arm64?

hdbpp-timescale-compiled$ docker build - < Dockerfile Sending build context to Docker daemon 2.56kB Step 1/10 : FROM continuumio/miniconda3:latest ---> b48e9d9e6088 Step 2/10 : RUN apt-get update && apt-get upgrade -y ---> Using cache ---> a7ad644da55f Step 3/10 : RUN apt-get install -y gcc build-essential ---> Using cache ---> 786ab815a8f2 Step 4/10 : RUN conda install -c conda-forge -y pkg-config git cmake postgresql ---> Running in a7dd009bc313 Illegal instruction (core dumped) The command '/bin/sh -c conda install -c conda-forge -y pkg-config git cmake postgresql' returned a non-zero code: 132

HassaanTS commented 3 years ago

Hi @TacHuynh ,

I believe this docker image is for x86_64. Doing uname -m renders the following result: image

I haven't tried this out with raspberry pi but maybe you can go inside the container in the interactive mode and try to figure out why it fails on the 4th step. Debugging from there onwards, you can then amend the dockerfile to run on raspberry pi.

Let me know if you make any progress, I'm quite curious as to why this fails. Good luck!