GithubHelp home page GithubHelp logo

opencadc / alma Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 3.0 2.32 MB

ALMA Science Archive web services

License: GNU Affero General Public License v3.0

Dockerfile 0.22% Shell 0.14% Java 21.38% PLSQL 1.68% CSS 3.20% HTML 0.28% JavaScript 71.75% Elixir 1.32% SCSS 0.02%

alma's Introduction

ALMA IVOA Deployment

ALMA Science Archive web services.

Docker Compose deployment

For ease, rename one of these to just docker-compose.yml, or run with docker-compose -f <file>.

docker-compose-nossl.yml

A set of HTTP-only running services relying on an existing Oracle database. Port 80 is open.

docker-compose-ssl.yml

A set of HTTPS-only running services relying on an existing Oracle database. This requires a volume called server_certs containing server.crt and server.key to enable Traefik's SSL engine. Ports 80 and 443 are open.

For any Docker Compose deployment, provide a .env file with the following variables:

Key Description
PROXY_HOST Main registry hostname.
DATABASE_USER Oracle user.
DATABASE_PASSWORD Oracle password.
DATABASE_HOST Oracle host.
DATABASE_NAME Oracle database name.
PROXY_HOST=myhost.example.com
DATABASE_USER=myuser
DATABASE_PASSWORD=myuserpw
DATABASE_HOST=db.host.example.com
DATABASE_NAME=ALMA

Service Stack Configuration

The properties file, org.opencadc.alma.properties, is required to be in the ~/config/ folder. This file contains the Service URIs (identifiers) that will be looked up in the Registry to obtain an acutal URL.

org.opencadc.alma.properties

almaDataLinkServiceURI=ivo://almascience.org/datalink
almaRequestHandlerServiceURI=ivo://almascience.org/requesthandler
almaFileSodaServicePort=8080
almaSODAServiceURI=ivo://almascience.org/soda
almaDataPortalServiceURI=ivo://almascience.org/dataportal
almaLoggingServiceURL=https://example.org/logging/entry


+-------------------------------+------------------------------------------+
| Property                      | Description                              |
+===============================+==========================================+
| almaDataLinkServiceURI        | DataLink service identifier              |
+-------------------------------+------------------------------------------+
| almaRequestHandlerServiceURI  | Request Handler service identifier       |
|                               | for locating files and drill down        |
+-------------------------------+------------------------------------------+
| almaFileSodaServicePort       | NGAS (Back-end) SODA service port        |
+-------------------------------+------------------------------------------+
| almaSODAServiceURI            | User facing (Front-end) SODA service     |
+-------------------------------+------------------------------------------+
| almaDataPortalServiceURI      | Data Portal service for DataLink entries |
+-------------------------------+------------------------------------------+
| almaLoggingServiceURL         | Full URL to the remote logging service to|
|                               | POST to                                  |
+-------------------------------+------------------------------------------+

Services

reg (ivo://almascience.org/reg) opencadc/alma-reg:2.1.0

The Registry service to distribute URLs for running services, namely the SIA and ObsCore services.

This service will have two files; reg-applications.properties, and reg-resource-caps.properties.

Once deployed, the reg service will make their contents available via the /reg/applications and /reg/resource-caps endpoints.

reg-applications.properties

Is expected to have two entries:

ivo://almascience.org/requesthandler=https://almasciencedl.eso.org/rh
ivo://almascience.org/dataportal=https://almascience.org/dataPortal

The URI keys will conform to the provided ones in the org.opencadc.alma.properties, and provide the services with an endpoint to use it. The reg-applications.properties differs in that it provides access to non-IVOA services, but still necessary ones.

reg-resource-caps.properties

Five IVOA services will need to be listed here, as well as the endpoints to use them. These URI keys will also match the configured ones in the org.opencadc.alma.properties. The data service will be located by the Request Handler location service due to the complexity of have the service run on multiple nodes.

# The registry service
ivo://almascience.org/reg = https://almascience.org/reg/capabilities

## ALMA services

# The IVAO SIA compatible service
ivo://almascience.org/sia = https://almascience.org/sia2/capabilities

# The IVOA DataLink service
ivo://almascience.org/datalink = https://almascience.org/datalink/capabilities

# The IVOA SODA service
ivo://almascience.org/soda = https://almascience.org/soda/capabilities

# The IVOA TAP service
ivo://almascience.org/tap = https://almascience.org/tap/capabilities

sia (ivo://almascience.org/sia) opencadc/alma-sia:2.1.0

SIA v2 service. This uses the ObsCore (TAP) service as described by the registry. See the SiaRunner.properties file to specify the TAP URI to use.

obscore (ivo://almascience.org/tap) opencadc/alma-tap:2.1.0

ObsCore (TAP) service to query the ALMA ObsCore database. An existing Oracle instance is required.

datalink (ivo://almascience.org/datalink) opencadc/alma-datalink:2.1.0

DataLink service to expand an MOUS ID into download URLs

data (ivo://almascience.org/data) opencadc/alma-data:2.1.0

Internal service to run on a storage (NGAS) node and execute the cutout code directly against files. It is mostly SODA compliant.

soda (ivo://almascience.org/soda) opencadc/alma-soda:2.1.0

IVOA SODA service. This will use the reg service to locate the Request Handler service, and the back-end SODA service.

alma's People

Contributors

at88mph avatar dependabot[bot] avatar opencadc-admin avatar yeunga avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alma's Issues

Wrong dataPortal URLs

Remove "dl" from the URL "almasciencedl.eso.org" returned by DataLink. Possibly the same problem with the other sites - I haven't tried them out.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.