-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #771 from wmde/wdqs-separate-concept-uri
- Loading branch information
Showing
7 changed files
with
62 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
#!/usr/bin/env bash | ||
# This file is provided by the wikibase/wdqs docker image. | ||
|
||
set +u | ||
if [ -z "$WIKIBASE_CONCEPT_URI" ]; then | ||
echo "WIKIBASE_CONCEPT_URI is required but isn't set."; | ||
exit 1; | ||
fi | ||
set -u | ||
|
||
cd /wdqs || exit | ||
|
||
# TODO env vars for entity namespaces, scheme and other settings | ||
/wait-for-it.sh "$WIKIBASE_HOST:80" -t 300 -- \ | ||
/wait-for-it.sh "$WDQS_HOST:$WDQS_PORT" -t 300 -- \ | ||
./runUpdate.sh -h http://"$WDQS_HOST":"$WDQS_PORT" -- --wikibaseUrl "$WIKIBASE_SCHEME"://"$WIKIBASE_HOST" --conceptUri "$WIKIBASE_SCHEME"://"$WIKIBASE_HOST" --entityNamespaces "$WDQS_ENTITY_NAMESPACES" | ||
./runUpdate.sh -h http://"$WDQS_HOST":"$WDQS_PORT" -- --wikibaseUrl "$WIKIBASE_SCHEME"://"$WIKIBASE_HOST" --conceptUri "$WIKIBASE_CONCEPT_URI" --entityNamespaces "$WDQS_ENTITY_NAMESPACES" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
# Any of these can be overridden locally in ../local.env | ||
|
||
# == TEST SERVICES GLOBALS | ||
WIKIBASE_PUBLIC_HOST=wikibase.example | ||
WDQS_FRONTEND_PUBLIC_HOST=wdqs-frontend.example | ||
QUICKSTATEMENTS_PUBLIC_HOST=quickstatements.example | ||
|
||
# URLS | ||
WIKIBASE_URL=http://wikibase | ||
MW_ADMIN_NAME=admin | ||
MW_ADMIN_EMAIL=[email protected] | ||
MW_ADMIN_PASS=change-this-password | ||
|
||
# URLs used by tests to access services from within the | ||
# docker network through traefik proxy | ||
WIKIBASE_URL=http://wikibase.example | ||
WDQS_FRONTEND_URL=http://wdqs-frontend.example | ||
QUICKSTATEMENTS_URL=http://quickstatements.example | ||
|
||
# URLs used by tests to access services from within the docker network directly | ||
WIKIBASE_CLIENT_URL=http://wikibase-client | ||
WDQS_URL=http://wdqs:9999 | ||
WDQS_FRONTEND_URL=http://wdqs-frontend | ||
WDQS_PROXY_URL=http://wdqs-proxy | ||
QUICKSTATEMENTS_URL=http://quickstatements | ||
|
||
# For Reverse Proxy (traefik) service routing | ||
WIKIBASE_PUBLIC_HOST=wikibase | ||
WDQS_FRONTEND_PUBLIC_HOST=wdqs-frontend | ||
QUICKSTATEMENTS_PUBLIC_HOST=quickstatements | ||
|
||
# CONFIG | ||
|
||
# wikibase / wikibase-client / wikibase-jobrunner | ||
MW_SCRIPT_PATH=/w |