-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added configuration to use a local token registry (#873)
* feat: added configuration to use a local token registry * feat: made local token registry default. * chore: adjusted token registry port to not disturb any process at port 8080, so switched to 8091 * chore: adjusted token registry port * feat: added configurability which repository to use for the token-registry
- Loading branch information
Showing
6 changed files
with
108 additions
and
13 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
export DB_USERNAME=$(cat /run/secrets/postgres_user) | ||
export DB_PASSWORD=$(cat /run/secrets/postgres_password) | ||
export DB_NAME=$(cat /run/secrets/postgres_db) | ||
export DB_URL=jdbc:postgresql://${POSTGRES_HOST}:${POSTGRES_PORT}/${DB_NAME}?currentSchema=${DB_SCHEMA} | ||
|
||
case "$NETWORK" in | ||
mainnet) | ||
GITHUB_ORGANIZATION=cardano-foundation | ||
GITHUB_PROJECT_NAME=cardano-token-registry | ||
GITHUB_MAPPINGS_FOLDER=mappings | ||
;; | ||
preprod|preview|testnet) | ||
GITHUB_ORGANIZATION=input-output-hk | ||
GITHUB_PROJECT_NAME=metadata-registry-testnet | ||
GITHUB_MAPPINGS_FOLDER=registry | ||
;; | ||
esac | ||
echo Using Github Repository $GITHUB_ORGANIZATION/$GITHUB_PROJECT_NAME as token registry | ||
java -jar /app/app.jar |