opencadc / caom2sandbox Goto Github PK
View Code? Open in Web Editor NEWCAOM service deployment for the CADC data engineering sandbox system
License: GNU Affero General Public License v3.0
CAOM service deployment for the CADC data engineering sandbox system
License: GNU Affero General Public License v3.0
and automate insert/update of tap_schema content
see storage-inventory/luskan for example (InitAction)
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).
scheduled background action to create materialised views, eg once at startup and then every X hours
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
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.