GithubHelp home page GithubHelp logo

opencadc / caom2sandbox Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 8.0 355 KB

CAOM service deployment for the CADC data engineering sandbox system

License: GNU Affero General Public License v3.0

Java 97.09% HTML 2.66% Dockerfile 0.25%

caom2sandbox's People

Watchers

 avatar  avatar  avatar  avatar  avatar

caom2sandbox's Issues

sc2repo: refactor configuration file syntax

The sc2repo.properties config file has a really old format that is very inconsistent with the (improved) practices we adopted in storage inventory (specifically thinking of baldur and raven where one creates an “entry” and then a set of properties for it on separate lines.

I don’t think it would be much work to implement a new config style like
ca.nrc.cadc.caom2.repo.entry = FOO
FOO.basePublisherID = ??
FOO.readOnlyGroup = ??
FOO.readWriteGroup = ??
FOO.operatorGroup = ??
FOO.staffGroup = ??
FOO.proposalGroup = true

Technically, only basePublisherID and readWriteGroup are required for a functional repo service.

In the sc2repo impl, there is only one database and we currently have only one maintained SQLGenerator impl, so the other config items are not really configurable separately (the pool and database are in the context.xml and confdigurable props go into catalina.properties).

sc2meta: remove hard-coded resourceID for other services

Several services (sc2links, sc2meta, sc2soda) have hard coded dependencies on other sc2 services via ServiceConfig.properties file inside the war file. Instead, such config should be found in ~/config/{service}.properties at startup, for example:

sc2meta.properties with something like:

ca.nrc.cadc.sc2meta.tapService = ivo://cadc.nrc.ca/sc2tap

Good practice: parse config in an InitAction and store stuff in JNDI

sc2repo: move database init to an InitAction

The current service uses CaomRepoConfig from caom2-repo-server and that class tries an InitDatabase once it picks the right config item (pool) -- eg at the start of a user request or when a caller invokes the /availability endpoint.

After refactoring the config (see issue #46), this will be easy enough to add and failure should make the service inoperable (code and database version not compatible).

see minoc for an example InitAction

sc2links: remove hard-coded resourceID for other services

Several services (sc2links, sc2meta, sc2soda) have hard coded dependencies on other sc2 services via ServiceConfig.properties file inside the war file. Instead, such config should be found in ~/config/{service}.properties at startup, for example:

sc2links.properties with something like:

ca.nrc.cadc.sc2links.tapService = ivo://cadc.nrc.ca/sc2tap
ca.nrc.cadc.sc2links.sodaService = ivo://cadc.nrc.ca/sc2soda

Good practice: parse config in an InitAction and store stuff in JNDI

sc2soda: remove hard-coded resourceID for other services

Several services (sc2links, sc2meta, sc2soda) have hard coded dependencies on other sc2 services via ServiceConfig.properties file inside the war file. Instead, such config should be found in ~/config/{service}.properties at startup, for example:

sc2soda.properties with something like:

ca.nrc.cadc.sc2links.tapService = ivo://cadc.nrc.ca/sc2tap
ca.nrc.cadc.sc2links.sodaService = ivo://cadc.nrc.ca/sc2soda

Good practice: parse config in an InitAction and store stuff in JNDI

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.