This is a short tutorial on how to build
Reason apps for an ARM target with the help
of Docker. I am using Docker for
Mac, which is
still under beta program. Using Docker for development has two important
advantages over traditional cross-compilation. First, the Reason toolchain comes
packaged as a Docker image and hence no local installation is necessary.
Secondly, cross-compilers are often tricky to get right. Docker for Mac comes
with multiarch support and hence removes the need for traditional
I will be testing using a Cubietruck
running Linaro Desktop. But these instructions should also work for
Raspbian, a Debian optimized for the Raspberry pi
First get the dockerfile for Reason toolchain and build the image.
All set! Let’s build a “Hello, World!” program.
The build artifacts are found in the host machines /tmp/reason_arm_hello/_build directory.
We can now transfer the file to the cubietruck and run it. My cubietruck’s IP
address is 192.168.0.9.