Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Dockerized Apache Buildr

What is Apache Buildr?

Apache Buildr is a build system for Java-based applications, including support for Scala, Groovy and a growing number of JVM languages and tools.

Why a "dockerized" Buildr

Some (CI) systems are ready for docker but not so ready for Buildr and its dependencies. This projects aims at building a ready to use docker image so you don't have to. It provides an isolated space for the build process, i.e. you will probably have less troubles if your builds bind to sockets or ports that may be used by others.

Limitations

Currently there are only containers with JRuby and Buildr. Containers for plain rubies may come in future.

How to use "dockerized" Buildr?

The image bundles JRuby with a pre-installed version of buildr and its dependencies. The version is supposed to be the latest, each buildr release should be available via a docker hub tag.

The container can be run in the working folder of the project to build. It needs to be mounted as a docker volume.

docker run --rm -ti -v `pwd`:/workspace vanto/apache-buildr:latest-jruby-jdk7

Note: On non-interactive setups like CI servers remove the -ti.

If you want to use a shared local maven repository, just mount your local .m2 directory into the docker container. This can be achieved by adding -v $HOME/.m2:/root/.m2 to the command above.

Any buildr arguments can be appended and will be passed to buildr. Buildr will operate on the current directory, so you will have immediate access to the build results.

Example:

$ docker run --rm -ti -v `pwd`:/workspace vanto/apache-buildr:latest-jruby-jdk7 clean package test=all

How to build the image?

Run docker build --rm -t vanto/apache-buildr:dev . in the respective directory to create a new image, docker rmi vanto/apache-buildr:dev to remove the image. JRuby and Buildr version numbers can be changed in the Dockerfile.

Thanks

Docker Pull Command
Owner
vanto
Source Repository