Public Repository

Last pushed: a year ago
Short Description
MrGeo Pseudo-Distributed Single Node Build and Test Environment
Full Description

This image contains the Cloudera 5.7.1 pseudo-distributed Hadoop quickstart image, along with Maven and all dependencies needed to build and test MrGeo.

In order to use the image use a command like

docker run -t -i -p 50070:50070 -v <mrgeo source parent directory>:/home/mrgeo mrgeo/pseudo-dist:v1 /usr/bin/docker-quickstart

The volume should mount the directory containing the mrgeo source under /home/mrgeo in the docker container which then allows maven commends to be run from /home/mrgeo/mrgeo. For the maven commands see the MrGeo wiki. Since MrGeo will run in the same container as the Hadoop cluster there is no need to map any ports, however any ports mapped will be accessible from your host. In this case this port option allows the namenode web ui to be accessed from the host.

If using the external maven repo version to prevent the need to download all the repo files when building this image, then include the volumes from the maven repo as shown below (assuming the maven repo container is named mvn-repo)

docker run -t -i -p 50070:50070 -p 5005:5005 -v <mrgeo source parent directory>:/home/mrgeo --volumes-from mvn-repo mrgeo/pseudo-dist:1.0-ext-mvn-repo /usr/bin/docker-quickstart

The example above also shows mapping of the 5005 port commonly used for remote debugging.

If testing with an external service hosted in a container, such as the mrgeo/geoserver container, use the link option to link to that container, in this example named geoserver.

docker run -t -i -p 50070:50070 -p 5005:5005 -v <mrgeo source parent directory>:/home/mrgeo --volumes-from mvn-repo --link geoserver mrgeo/pseudo-dist:1.0-ext-mvn-repo /usr/bin/docker-quickstart
Docker Pull Command

Comments (0)