Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

A feature full Tomcat (SSL over APR, etc.) running ERDDAP

Notifications You must be signed in to change notification settings

clarity-h2020/docker-erddap

 
 

Repository files navigation

CLARITY ERDDAP

Based on https://github.com/axiom-data-science/docker-erddap + additional project specific configuration.

Starting and stopping

Create ERDDAP Service

cd /docker/300-erddap \
docker-compose up -d --force-recreate --remove-orphans

Delete ERDDAP Service

cd /docker/300-erddap \
docker-compose down

Start ERDDAP Service

cd /docker/300-erddap \
docker-compose start

Start ERDDAP Service

cd /docker/300-erddap
docker-compose stop  

Check ERDDAP Service Status

cd /docker/300-erddap 
docker-compose ps 
docker-compose logs   

Data Volumes & Backups

See docker-compose.yml for configuration of host-mounted volumes. In general, data and configuration will be persisted in /docker/300-erddap. Configuration that is not part of this GitHub Repository is included in "poor man's backups" while data is covered in the general server backups (Veeam Backup & Replication).

Running ERRDAP CLI Tools

$ docker run --rm -it \
  -v $(pwd)/logs:/erddapData/logs \
  axiom/docker-erddap:latest \
  bash -c "cd /usr/local/tomcat/webapps/erddap/WEB-INF/ && bash GenerateDatasetsXml.sh -verbose"

or sh into the running container with

docker exec -it --user ${tomcat_uid_from} erddap bash
cd /usr/local/tomcat/webapps/erddap/WEB-INF/
./GenerateDatasetsXml.sh -verbose

ERDDAP on Docker

A feature full Tomcat (SSL over APR, etc.) running ERDDAP

Available versions:

  • axiom/docker-erddap:1.82
  • axiom/docker-erddap:1.80
  • axiom/docker-erddap:1.78
  • axiom/docker-erddap:1.74 - first release based on unidata/tomcat-docker
  • axiom/docker-erddap:1.72
  • axiom/docker-erddap:1.68
  • axiom/docker-erddap:1.66
  • axiom/docker-erddap:1.64

Quickstart

$ docker run -d -p 8080:8080 axiom/docker-erddap

Running ERRDAP CLI Tools

GenerateDatasetsXml

$ docker run --rm -it \
  -v $(pwd)/logs:/erddapData/logs \
  axiom/docker-erddap:latest \
  bash -c "cd webapps/erddap/WEB-INF/ && bash GenerateDatasetsXml.sh -verbose"

Configuration

Tomcat

See these instructions for configuring Tomcat.

ERDDAP

  1. Mount your own content/erddap directory:

    $ docker run \
        -v /path/to/your/erddap/directory:/usr/local/tomcat/content/erddap \
        ... \
        axiom/docker-erddap

    Your content directory should contain a setup.xml and dataset.xml file. It can also include CSS assets that you reference in your custom setup.xml file.

    If you just want to change setup.xml and dataset.xml, you can mount them individually:

    $ docker run \
        -v /path/to/your/setup.xml:/usr/local/tomcat/content/erddap/setup.xml \
        -v /path/to/your/datasets.xml:/usr/local/tomcat/content/erddap/datasets.xml \
        ... \
        axiom/docker-erddap

    Any custom setup.xml needs to specify <bigParentDirectory>/erddapData/</bigParentDirectory>

  2. Mount your own bigParentDirectory:

    $ docker run \
        -v /path/to/your/erddap/bigParentDirectory:/erddapData \
        ... \
        axiom/docker-erddap

    This is highly recommended, or nothing will persist across container restarts (logs/cache/etc.)

About

A feature full Tomcat (SSL over APR, etc.) running ERDDAP

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 66.9%
  • Dockerfile 16.6%
  • Shell 16.5%