I would like to create a base image for my project. The image would be based on resin/raspberry-pi2-node6, on top of which I would install some libraries. Example of Dockerfile:
FROM resin/raspberry-pi2-node:6
COPY qemu-arm-static /usr/bin/
RUN apt-get update && apt-get install -y tar wget git && rm -rf /var/lib/apt/lists/*
I would then be able to base my project on this image
FROM mycompany/raspberry-pi2
When I tried to build the image on my local Linux, I got the error
exec format error
[8] System error: exec format error
I guess this is because I am trying to build the image from a non ARMv6 architecture. Is it possible to emulate this architecture on my local machine or should I build from a Raspberry Pi 2 ?
Yes, you will need to build any custom base image and then make it publicly available on Dockerhub for our Builder to be able to use it when building Applications.