Skip to content

Commit

Permalink
add Thredds to docker-compose as DAP server
Browse files Browse the repository at this point in the history
tlvu committed Feb 12, 2020
1 parent a8dd5c4 commit 3b90a10
Showing 2 changed files with 52 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
version: '3'
services:
emu:
# http://localhost:5000/wps
build: .
image: birdhouse/emu:dev
ports:
- "5000:5000"
volumes:
- outputpath:/tmp

thredds:
# Thredds is used as DAP server for Emu outputs
# http://localhost:8080/thredds/catalog.html
image: unidata/thredds-docker:4.6.14
ports:
- "8080:8080"
volumes:
- ./threddsCatalog.xml:/usr/local/tomcat/content/thredds/catalog.xml:ro
- outputpath:/wps_outputs:ro

volumes:
outputpath: {}

41 changes: 41 additions & 0 deletions threddsCatalog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<catalog name="Emu Thredds Catalog"
xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0"
xmlns:xlink="http://www.w3.org/1999/xlink" >

<service name="all" serviceType="Compound" base="" >
<!-- HTTPServer works for all file types. -->
<service name="http" serviceType="HTTPServer" base="/thredds/fileServer/" />

<!-- Services below known to work with .nc and .ncml files only. -->
<service name="odap" serviceType="OpenDAP" base="/thredds/dodsC/" />
<service name="ncml" serviceType="NCML" base="/thredds/ncml/"/>
<service name="uddc" serviceType="UDDC" base="/thredds/uddc/"/>
<service name="iso" serviceType="ISO" base="/thredds/iso/"/>
</service>

<datasetScan name="Emu" ID="emu" path="emu" location="/wps_outputs">

<metadata inherited="true">
<serviceName>all</serviceName>
</metadata>

<filter>
<!-- basic file types -->
<include wildcard="*.nc" />
<include wildcard="*.ncml" />
<include wildcard="*.txt" />
<include wildcard="*.md" />
<include wildcard="*.rst" />

<!-- file types from emu.multiple_outputs -->
<include wildcard="*.metalink" />
<include wildcard="*.meta4" />

<!-- file types from emu.output_formats -->
<include wildcard="*.json" />
</filter>

</datasetScan>

</catalog>

0 comments on commit 3b90a10

Please sign in to comment.