Skip to content

Adding Databases to the RSP TAP service

stvoutsin edited this page Oct 20, 2022 · 1 revision

Install Required Libraries

Install Python3

sudo apt-get install python3
 
sudo apt-get install python-is-python3

Install Felis

Clone Felis project

git clone https://github.com/lsst/felis/

Run install

pushd felis
    python -m pip install .
popd

Build our TAP_SCHEMA image

Clone sdm_schemas project

git clone https://github.com/lsst/sdm_schemas

Add any additional Database YML files we want to add to sdm_schemas/yml

For example:

pushd sdm_schemas/yml  
   wget http://.../SXDS.yaml
popd

We need to first modify the build script, to use our DockerHub repo (stvoutsin)

pushd sdm_schemas/tap-schema

Modify build file, change lines:

    docker build . -t lsstsqre/tap-schema-$ENVIRONMENT:$GIT_TAG
    docker push lsstsqre/tap-schema-$ENVIRONMENT:$GIT_TAG

to:

    docker build . -t stvoutsin/tap-schema-$ENVIRONMENT:$GIT_TAG
    docker push stvoutsin/tap-schema-$ENVIRONMENT:$GIT_TAG

Build our environment (roe)

./build roe ../yml/dp02_dc2.yaml ../yml/dp01_dc2.yaml ../yml/SXDS.yaml ../yml/dp02_obscore.yaml 
popd

Configure our tap-schema service

Modify our tap-schema service in the phalanx repo that we have forked & are deploying from to use the image we created In phalanx, change services/tap-schema/values-roe.yml

 image:
    repository: "stvoutsin/tap-schema-roe

Upgrade / Deploy

Use ArgoCD to upgrade our tap-schema deployment if modifying an existing deployment, or deploy if new