forked from geo-data/gdal-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Homme Zwaagstra
committed
May 22, 2014
1 parent
9692f06
commit babfd6a
Showing
1 changed file
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,37 @@ | ||
# Dockerfile for GDAL | ||
# GDAL Docker Images | ||
|
||
This contains a Dockerfile which creates an Ubuntu derived docker | ||
image. The image contains the latest GDAL github checkout compiled | ||
with a broad range of drivers. The build process closely follows that | ||
defined in <https://github.com/OSGeo/gdal/blob/trunk/.travis.yml> but | ||
This is an Ubuntu derived image containing the Geospatial Data Abstraction | ||
Library (GDAL) compiled with a broad range of drivers. The build process | ||
closely follows that defined in the | ||
[GDAL TravisCI tests](https://github.com/OSGeo/gdal/blob/trunk/.travis.yml) but | ||
omits Java support. | ||
|
||
See the [Docker Index](https://index.docker.io/u/homme/gdal) for more | ||
information. | ||
Each branch in the git repository corresponds to a supported GDAL version | ||
(e.g. `1.11.0`) with the master branch following GDAL master. These branch | ||
names are reflected in the image tags on the Docker Index (e.g. branch `1.11.0` | ||
corresponds to the image `homme/gdal:v1.11.0`). | ||
|
||
## Usage | ||
|
||
The following command will open a bash shell in an Ubuntu based environment | ||
with GDAL available: | ||
|
||
docker run -t -i homme/gdal:latest /bin/bash | ||
|
||
Running the container without any arguments will by default run the GDAL test | ||
suite: | ||
|
||
docker run homme/gdal:latest | ||
|
||
You will most likely want to work with data on the host system from within the | ||
docker container, in which case run the container with the -v option. This | ||
mounts a host directory inside the container; the following invocation maps the | ||
host's /tmp to /data in the container: | ||
|
||
docker run -v /tmp:/data -t -i homme/gdal:latest /bin/bash | ||
|
||
Note that the with the image tagged `latest`, GDAL represents the latest code | ||
*at the time the image was built*. If you want to include the most up-to-date | ||
commits then build the docker image yourself locally along these lines: | ||
|
||
docker build -t gdal:latest git://github.com/geo-data/gdal-docker/ |