dockerbuild.sh for Rapicorn & Beast



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:
$ misc/dockerbuild.sh
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.

Example invocation:
misc/dockerbuild.sh ubuntu:wily clangbuild,distcheck

The .travis.yml file has more examples:
Distribution examples:
ubuntu:wily
debian:jessie
debian:testing
ubuntu:xenial
ubuntu:yakkety

Currently supportet intents (can be combined as above):
clangbuild      (use clang++ instead of c++)
distcheck       (default)
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).

-- 
Yours sincerely,
Tim Janik

https://testbit.eu/timj/
Free software author.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]