-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #385: Refactor: rename env vars to follow repo renaming
5b1a3c1 refactor: [#361] rename env vars to follow repo renaming (Jose Celano) Pull request description: - Repo `torrust-index-backend` was renamed to `torrust-index`. - We are not using the `IDX` abbreviation for `INDEX`. - `USER_ID` was renamed when @da2ce7 did the container overhaul. ``` TORRUST_INDEX_BACK_CORS_PERMISSIVE -> TORRUST_INDEX_API_CORS_PERMISSIVE TORRUST_IDX_BACK_CONFIG -> TORRUST_INDEX_CONFIG TORRUST_IDX_BACK_USER_UID -> USER_ID TORRUST_IDX_BACK_RUN_AS_USER -> TORRUST_INDEX_RUN_AS_USER TORRUST_IDX_BACK_MYSQL_DATABASE -> TORRUST_INDEX_MYSQL_DATABASE ``` ACKs for top commit: josecelano: ACK 5b1a3c1 Tree-SHA512: fcec9979ba75d7fbca0c939fbe526d54971304411b89702bb51619525fc5aa6e07cbd09b6dc177913da2948e217747771b8a86071c0aebc34d895e5c7a81ed2f
- Loading branch information
Showing
9 changed files
with
26 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
DATABASE_URL=sqlite://storage/database/data.db?mode=rwc | ||
TORRUST_IDX_BACK_CONFIG= | ||
TORRUST_IDX_BACK_USER_UID=1000 | ||
TORRUST_INDEX_CONFIG= | ||
USER_ID=1000 | ||
TORRUST_TRACKER_CONFIG= | ||
TORRUST_TRACKER_DATABASE_DRIVER=sqlite3 | ||
TORRUST_TRACKER_API_ADMIN_TOKEN=MyAccessToken | ||
|
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,13 +1,13 @@ | ||
#!/bin/bash | ||
|
||
TORRUST_IDX_BACK_USER_UID=${TORRUST_IDX_BACK_USER_UID:-1000} | ||
TORRUST_IDX_BACK_RUN_AS_USER=${TORRUST_IDX_BACK_RUN_AS_USER:-appuser} | ||
USER_ID=${USER_ID:-1000} | ||
TORRUST_INDEX_RUN_AS_USER=${TORRUST_INDEX_RUN_AS_USER:-appuser} | ||
|
||
echo "Building docker image ..." | ||
echo "TORRUST_IDX_BACK_USER_UID: $TORRUST_IDX_BACK_USER_UID" | ||
echo "TORRUST_IDX_BACK_RUN_AS_USER: $TORRUST_IDX_BACK_RUN_AS_USER" | ||
echo "USER_ID: $USER_ID" | ||
echo "TORRUST_INDEX_RUN_AS_USER: $TORRUST_INDEX_RUN_AS_USER" | ||
|
||
docker build \ | ||
--build-arg UID="$TORRUST_IDX_BACK_USER_UID" \ | ||
--build-arg RUN_AS_USER="$TORRUST_IDX_BACK_RUN_AS_USER" \ | ||
--build-arg UID="$USER_ID" \ | ||
--build-arg RUN_AS_USER="$TORRUST_INDEX_RUN_AS_USER" \ | ||
-t torrust-index . |
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,11 +1,11 @@ | ||
#!/bin/bash | ||
|
||
TORRUST_IDX_BACK_USER_UID=${TORRUST_IDX_BACK_USER_UID:-1000} | ||
TORRUST_IDX_BACK_CONFIG=$(cat config.toml) | ||
USER_ID=${USER_ID:-1000} | ||
TORRUST_INDEX_CONFIG=$(cat config.toml) | ||
|
||
docker run -it \ | ||
--user="$TORRUST_IDX_BACK_USER_UID" \ | ||
--user="$USER_ID" \ | ||
--publish 3001:3001/tcp \ | ||
--env TORRUST_IDX_BACK_CONFIG="$TORRUST_IDX_BACK_CONFIG" \ | ||
--env TORRUST_INDEX_CONFIG="$TORRUST_INDEX_CONFIG" \ | ||
--volume "$(pwd)/storage":"/app/storage" \ | ||
torrust-index |
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