Skip to content

NiklasPhabian/occur_cherrypy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCCUR

OCCUR is the OPeNDAP Citation Creator. It acts as a proxy server, put in between an arbitray OPeNDAP data source and a client requesting data. Except for citations requests, OCCUR forwards any request from the client to the OPeNDAP data source and passes the response of the OPeNDAP data source on to the client. OCCUR will repsond to the citation request by generating a citation from the data attribute structure (DAS), which it requests from the OPeNDAP data source, the subsetting / selection parameters, and the time of access. A citation request is invoked by appending ".citation" to the url of the data source.

Requirements

OCCUR requires following python packages:

  • cherrypy
  • requests

Run occur

OCCUR is written and in tested for python 3.5. The occur folder contains a configuration server.conf in which the listening port and the listening address can be configured. To lauch OCCUR:

python3 occur/main.py

Dockerize

The application can be dockerzied using the included Dockerfile.

Build container: docker build . -t occur

The built container is also available at: https://hub.docker.com/r/griessbaum/occur/

Run the container docker run -p 8080:80 occur

In this example, the container's port 80 is mapped to the host's port 8080

Container DNS configuration

As of Ubuntu 16.04 and Docker 1.12.6, containers will fail to set up a DNS server in networks that block external DNS servers. The issue is described in: moby/moby#23910 and resolved by

echo {"dns": ["172.17.0.1"]}  > /etc/docker/daemon.json
echo listen-address=172.17.0.1 > /etc/NetworkManager/dnsmasq.d/docker-bridge.conf

About

OpeNDAP Citation Creator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published