I’d trying to get automated build for arm as well as amd64.
The structure of my project is:
code.py Docker Dockerfile Dockerfile.arm32v7 hooks pre_build post_checkout
In post_checkout I’ve got the download of qemu (the arm binaries). As far as i can tell it’s going to the Docker directory.
In pre_build qemu is registered.
Then in the docker file I have
COPY qemu-arm-static /usr/bin/
So looking at the docker hub logs, I can see the qemu being downloaded, and registered.
But when it gets to the docker build command, it can’t find
Starting build of index.docker.io/psyciknz/paradoxip:dev-arm64v8-latest... Step 1/12 : FROM arm64v8/python:2.7.15-jessie ---> 3d1900519aa4 Step 2/12 : COPY qemu-aarch64-static /usr/bin/ COPY failed: stat /var/lib/docker/tmp/docker-builder077639436/qemu-aarch64-static: no such file or directory
I’ve tried updating the DockerFile to ‘COPY Docker/qemu-arm-static /usr/bin/’ but it didn’t help… but I updated my post_checkout to add PWD and LS, I can can definitely figure out that it has run that script from the Docker directory. But I can’t figure out where build it run from to get the qemu to the right location.