Commit 363277c7 authored by msuhr1's avatar msuhr1
Browse files

Switch to using a generic CDSTAR service in CI Pipeline

parent 5da4632a
......@@ -9,13 +9,23 @@ stages:
services:
- couchdb
- name: docker.gitlab.gwdg.de/cdstar/cdstar:v3.0.4
alias: cdstar
command: ["run"]
variables:
CDSTAR_URI: "http://vm18212.virt.gwdg.de:8080/v3"
CDSTAR_URI: "http://cdstar:8080/v3"
CDSTAR_VAULT: "medic"
# variables for CouchDB service; refer to Gitlab project CI variables
COUCHDB_USER: $COUCH_USER
COUCHDB_PASSWORD: $COUCH_PASS
# variables for CDSTAR service
CDSTAR_HTTP_HOST: 0.0.0.0
CDSTAR_VAULT_MEDIC_CREATE: "True"
CDSTAR_REALM_STATIC_CLASS: StaticRealm
CDSTAR_REALM_STATIC_ROLE_ADMIN: "vault:medic:*:*"
CDSTAR_REALM_STATIC_USER_MEDIC_PASSWORD: "$CDSTAR_PASS_HASHED"
CDSTAR_REALM_STATIC_USER_MEDIC_ROLES: "admin"
build_image:
stage: build
......@@ -43,6 +53,7 @@ run_tests:
COUCH_DB: "annotation_agent_test"
before_script:
- curl --connect-timeout 5 $CDSTAR_URI
- curl http://$CDSTAR_USER:$CDSTAR_PASS@cdstar:8080/v3/$CDSTAR_VAULT
- curl --connect-timeout 5 $COUCH_URI
- curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@couchdb:5984/_users
- curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@couchdb:5984/_replicator
......
Markdown is supported
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