Commit e7fd3b7b authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added demo script and TAP_SCHEMA fixes

parent b74b81fa
Pipeline #1250 passed with stages
in 1 minute and 1 second
......@@ -33,7 +33,7 @@ build_db:
refs:
- master
changes:
- database
- database/*
script:
- cd database
- 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 = '';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment