Cross-platform builds using Docker
Context
One of our main goals was to be able to build and run the VWAT software on both Linux and OSX machines. This is important for development and would be helpful to future users of the software.
Overview
Using Docker, you can now build and run the VWAT software on Linux and OSX machine without manual configuration required. Docker packages software into a container. It is similar to the idea of a Virtual Machine.
The Dockerfile
contains the commands used to assemble an image. The commands required to build and run a container are in the bash scripts docker-build.sh
, docker-run-oxs.sh
and docker-run-linux.sh
.
There is a new README.md
file in the vanwftk
directory. The Docker
section in this file explains the steps to build and run on your machine.
A couple of small changes to the Makefile
were required. One these being the order of flags, and the Makefile now creates the bin
, lib
and obj
directories.
How was this tested?
I tested the build and run the scripts on my OSX machine in both "basic user" and "development" mode.