I have very little experience with docker, but I'm trying to create automated build for my library using gitlab-ci and a docker image.
I want it to be build for raspberrypi so I found an docker image (here) and I have created a github repository with Dockerfile
.
In next step I have created an automated build in dockerhub, but build fails with following error:
Build failed: rpc error: code = 2 desc = "oci runtime error: exec format error"
I couldn't find any help in the documentation and also nothing on google so I'm asking:
Do you know what causes this error?
My Dockerfile:
FROM resin/rpi-raspbian:wheezy-20160518
MAINTAINER lewicki.pk@gmail.com
RUN apt-get update && apt-get install -y \
automake \
cmake \
g++ \
git \
libboost-all-dev \
libi2c-dev \
libjsoncpp-dev \
libpcre3-dev \
libssl-dev \
libtool \
make \
openssl \
pkg-config \
wget \
&& apt-get clean
And the log from docker:
Starting build of index.docker.io/piotrlewicki/gitlab-ci_rpi-image:latest...
Step 1 : FROM resin/rpi-raspbian:wheezy-20160518 ---> aefd4527968f
Step 2 : MAINTAINER lewicki.pk@gmail.com
---> Running in a463aace5c5a
---> c5eedf34e43c Removing intermediate container a463aace5c5a
Step 3 : RUN apt-get update && apt-get install -y automake cmake g++ git libboost-all-dev libi2c-dev libjsoncpp-dev libpcre3-dev libssl-dev libtool make openssl pkg-config wget && apt-get clean
---> Running in 318905fb5329 Removing intermediate container 318905fb5329
rpc error: code = 2 desc = "oci runtime error: exec format error"