This repository begins the implementation of the TMT Data Management System (DMS). This repository contains protyping code that addresses risks during the DMS final design phase. A different repository will be used for the full development phase in the future.
Postgres should be installed on your machine with postgres
database, for more details refer csw docs
cs launch csw-services:4.0.0-M1 -- start -e -d
cs launch dms-services:commitSHA -- start -p 9999
- Additionally, if required, add
-i
argument to initialize database
- Argument
--keyword-mappings-conf
should be repeated to pass mappings for each subsystem separately and should follow file name convention like{subsystem}-keyword-mappings.conf
. e.g.IRIS-keyword-mappings.conf
cs launch dms-services:commitSHA -- start -p 9999 --keywords-conf "/path/to/header-keywords.conf" --keyword-mappings-conf "/path/to/IRIS-keyword-mappings.conf" --keyword-mappings-conf "/path/to/WFOS-keyword-mappings.conf"
These can be standalone config files or composed config files written in HOCON format, for more details around what configurations are expected in these files refer existing access service resource files and collection service resource files.
cs launch csw-services:4.0.0-M1 -- start -e -d
User should have postgres
server installed with postgres
database and dmsuser
user created.
psql -d postgres -h localhost -p 5432 -U dmsuser
create table event_snapshots
(
exposure_id varchar(50) not null,
obs_event_name varchar(50) not null,
source varchar(50) not null,
eventname varchar(50) not null,
eventid varchar(50) not null,
eventtime timestamp not null,
paramset text
);
create index idx_exposure_id
on event_snapshots (exposure_id);
create table keyword_values
(
exposure_id varchar(50) not null,
keyword varchar(50) not null,
value varchar(50) not null
);
create index idx_hdr_exposure_id
on keyword_values (exposure_id);
src/test/scala/simulator/PublisherAppWithPerfLikeSetup.scala
src/main/scala/dms/metadata/collection/Main.scala
Note: You should see some data populated in tables : keyword_values
and event_snapshots
src/main/scala/dms/metadata/access/HttpServer.scala
Copy any exposureId
from table : keyword_values
, update apptest.http with ip, port and exp-id to do a get call