Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add thredds to docker-compose as DAP server #99

Merged
merged 3 commits into from
Feb 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
version: '3'
services:
emu:
# http://localhost:5000/wps
build: .
image: birdhouse/emu
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: {}

# docker-compose build
# docker-compose up
# docker-compose down
# docker-compose down -v
# -v, --volumes Remove named volumes declared in the `volumes` section
# of the Compose file and anonymous volumes
# attached to containers.
# docker-compose rm
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>