Docker image for Mapbender flavoured builds
This Image is just for building mapbender artifacts. To run mapbender in docker use
How to run
You have to install docker first.
The easiest way
./build.sh # Now lay back, get a coffee or thanks Axel for making this docker-box possible
The not as easy as above way
After that, or if you want to use the image from the docker hub repository, run:
docker run mapbender/build -v /absolute/path/to/out:/out
If you want to build a specific version you can change the behavior
by changing environment variables, like this:
docker run mapbender/build --env MAPBENDER_REPOSITORY="..." -v /absolute/path/to/out:/out
See list below for all environment variables...
Build image on your own
If you want to build the image locally run in this folder:
docker build -t mapbender/build .
How to enhance this image
This docker image have a user for builds called bob. Please prefer him for builds!
There is a directory for enhancing with additional provisioning in
You can create your own image for builds and enhance this one by placing shell scripts
or a parameter.yml into this folder like this:
FROM mapbender/build MAINTAINER Put your name here COPY some-shell-script.sh /build-init.d/ COPY my-own-and-specific-paramters.yml /build-init.d/parameters.yml
MAPBENDER_REPOSITORYdefault value: "https://github.com/mapbender/mapbender-starter.git"
MAPBENDER_BRANCHdefault value: "release/3.0.6"
MAPBENDER_NAMEdefault value: "mapbender"
MAPBENDER_VERSIONdefault value: "3.0.6"
BUILD_NUMBERdefault value: 1