This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
161 additions
and
134 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
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,28 +1,20 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
|
||
export REST_API_SCHEME=${REST_API_SCHEME:=https} | ||
export REST_API_SERVER=${REST_API_SERVER:=www.targetvalidation.org:443} | ||
export ENSEMBL_API_KEY=${ENSEMBL_API_KEY:=YOUR_KEY_HERE} | ||
|
||
# substitute the rest API address in the nginx configuration | ||
|
||
envsubst < /etc/nginx/conf.d/app_server.template > /etc/nginx/conf.d/app_server.conf | ||
envsubst '$REST_API_SCHEME:$ENSEMBL_API_KEY' < /etc/nginx/conf.d/rest_api_scheme.template > /etc/nginx/conf.d/rest_api_scheme.conf | ||
|
||
echo "=======================================" | ||
echo "TESTING CONNECTION TO REST API ..." | ||
echo "POINTING TO REST API" | ||
echo at ${REST_API_SCHEME}://${REST_API_SERVER} | ||
echo "" | ||
|
||
curl -k --max-time 30 --connect-timeout 10 ${REST_API_SCHEME}://${REST_API_SERVER}/api/latest/public/utils/ping | ||
|
||
echo "=======================================" | ||
echo "Checking REST API version ..." | ||
echo "" | ||
|
||
curl -k --max-time 30 --connect-timeout 10 ${REST_API_SCHEME}://${REST_API_SERVER}/api/latest/public/utils/version | ||
|
||
|
||
# As argument is not related to elasticsearch, | ||
# then assume that user wants to run his own process, | ||
# assume that user wants to run his own process, | ||
# for example a `bash` shell to explore this image | ||
exec "$@" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.