gmt-docker is docker image project that provides latest GMT Builds, DCW and GSHHG Data pre-installed. Standard extensions with pre-installed versions of
jupyter notebook are provided for the convenience of the developer community
To use the latest docker image from your machine
docker run nc5ng/gmt --version
A specific version and revision can be used instead,
docker run nc5ng/gmt:6.0.0_r20005 --version
GMT/Python in a
docker run nc5ng/gmt:jupyter
Specific versions and revisions are provided as well for evaluation and comparison.
Table of Contents
Docker containers provide a convenient way to use different versions of GMT Tools easily, and to evaluate development versions without needing to pollute the local system with complex build requirements. Images integrate well into many Continuous Integration/Continuous Deployment pipelines and allow you to use latest GMT builds as part of your automated data processing or build pipeline.
nc5ng.org maintains precompiled images with latest Trunk GMT code, Up to date DCW Boundary Data and GSHHG Coastal Data pre-downloaded. Releases with stable versions are also avaialable based on tagged releases.
A quick tutorial for evaluating gmt in a sandboxxed environment, with visualization courtest of
- Start the
gmt-dockerjupyter image on the standard port
$ docker run -p "8888:8888" nc5ng/gmt:jupyter
- Copy the token printed in the log message and navigate to the url
You will see the built-in example notebook listed in the directory
Open the Example Notebook by clicking on it
Run through the notebook to get the example plot. A map of the contiguous state of the USA with rivers, lakes, state and national boundaries, and the geographic center of the contiguous states marked.
From here you can proceed to execute
GMT/Python commands in the example notebook.
To save your work externally, or to import other notebooks and packages additional knowledge of docker functionality is needed. For some examples see the Readme