Both, Rapicorn and Beast can now very easily built inside docker.
Both repos have the following files in place:
- misc/Dockerfile-apt.in - template to yield a Dockerfile
- misc/applyenv.sh a simple script that substitutes @environmentvariable@ in misc/Dockerfile-apt.in
- misc/dockerbuild.sh - easy to use script that generates Dockerfile and runs docker build
The dockerbuild.sh script can be used as follows:
dockerbuild.sh: Usage: dockerbuild.sh <DIST> [INTENT]
Here, DIST is used as the starting distribution for the Dockerfile (the FROM statement),
and INTENT controls individual steps of the docker build.
misc/dockerbuild.sh ubuntu:wily clangbuild,distcheck
The .travis.yml file has more examples:
Currently supportet intents (can be combined as above):
clangbuild (use clang++ instead of c++)
package (build .deb packages)
bintrayup (bintray.com package upload, requires API token)
That should make it really easy to test build rapicorn or beast in docker, e.g. with clang, regardless of local installations, provided one has docker installed (and git to clone from github).