This repository contains all files required to set up a simple ERDDAP service using docker based on Axiom's docker-erddap image. It includes a dummy dataset based on a NetCDF file, so users can take a look and replicate it.
- Install Docker engine
- Install git
- clone this repository:
$ git clone https://github.com/emso-eric/erddap-playground - Enter the folder and run docker:
$ cd erddap-playground - Start ERDDAP container:
$ docker compose up -d
Voilà! ERDDAP should be up and running at http://localhost:8080/erddap
This project is organized as follows:
├── conf # Folder to store configuration files
│ ├── datasets.xml # Datasets configuration and HTML customization
│ ├── setup.xml # ERDDAP Server configuration
│ └── custom_logo.png # example logo
|
├── datasets # Folder where our datasets will be stored
│ ├── DummyData # Example dataset path
│ └── dummydata.nc # example NetCDF file with EMSO metadata
│
│── erddapData # ERDDAP internal stuff
│ ...
│ └── logs # ERDDAP's logs, worth taking a look
| └── log.txt # ERDDAP's latest logThe conf folder contains the setup.xml and datasets.xmlconfiguration files. For further details consult the official setup and datasets.xml documentation.
To add anew dataset, create a new folder within datasets and drop your files there (there can be as many subdirectories as needed). Then, in your datasets.xml file you can copy&paste the dummy dataset and do the following changes:
- change the
datasetIDattribute<fileDir>>/dataset/NewDataset</fileDir> - change the
<fileDir>to the path where your data is stored. Remember that the datasets folder is mounted at/datasets - Adapt the rest of the dataset of the metadata attributes.
- Adapt the
dataVariablesas needed and select the proper dataTypes for every variable.<sourceName>is the name in the NetCDFs and<destinationName>is the name exposed by ERDDAP. Coordinates variables like TIME, LATITUDE, LONGITUDE and DEPTH variables should be left as in the example.
Author: Enoc Martínez
Affiliation: Universitat Politècnica de Catalunya
Contact: enoc.martinez@upc.edu