Skip to content
Snippets Groups Projects
Commit e7fd3b7b authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added demo script and TAP_SCHEMA fixes

parent b74b81fa
No related branches found
No related tags found
No related merge requests found
Pipeline #1250 passed
...@@ -33,7 +33,7 @@ build_db: ...@@ -33,7 +33,7 @@ build_db:
refs: refs:
- master - master
changes: changes:
- database - database/*
script: script:
- cd database - cd database
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}" - docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
......
## Setup
docker-compose pull
docker-compose up -d
If you experience issues with the pull command use this setting in `/etc/docker/daemon.json`:
{
"insecure-registries" : [ "git.ia2.inaf.it:5050" ]
}
## Demo
./call-tap.sh badtoken
Only free records (2 rows)
./call-tap.sh token1
Free records + records associated with group1 and group2 (6 rows)
./call-tap.sh token2
Free records + records associated with group2 (4 rows)
## Shutdown
docker-compose down
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <token>"
exit 1
fi
curl -s -XPOST \
-H "Authorization: Bearer $1" \
-F 'REQUEST=doQuery' \
-F 'LANG=ADQL' \
-F 'FORMAT=text/csv' \
-F 'PHASE=RUN' \
-F "QUERY=SELECT * from demo.private_rows;" \
http://localhost:8080/tap/sync
update "TAP_SCHEMA".columns set arraysize = replace(arraysize, '*', '') where arraysize like '%*%';
update "TAP_SCHEMA".columns set arraysize = NULL where arraysize = '';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment