forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
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
8 changed files
with
29 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
#!/bin/bash | ||
|
||
TORRUST_INDEX_USER_UID=${TORRUST_INDEX_USER_UID:-1000} | ||
TORRUST_IDX_BACK_RUN_AS_USER=${TORRUST_IDX_BACK_RUN_AS_USER:-appuser} | ||
|
||
echo "Building docker image ..." | ||
echo "TORRUST_INDEX_USER_UID: $TORRUST_INDEX_USER_UID" | ||
echo "TORRUST_IDX_BACK_RUN_AS_USER: $TORRUST_IDX_BACK_RUN_AS_USER" | ||
|
||
docker build \ | ||
--build-arg UID="$TORRUST_INDEX_USER_UID" \ | ||
--build-arg RUN_AS_USER="$TORRUST_IDX_BACK_RUN_AS_USER" \ | ||
--target debug --tag torrust-index-backend:debug . | ||
docker build --target debug --tag torrust-index-backend:debug . | ||
docker build --target debug --tag torrust-tracker:debug https://github.com/torrust/torrust-tracker.git#pull/363/head |
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,12 +1,11 @@ | ||
#!/bin/bash | ||
|
||
USER_UID=${USER_UID:-1000} \ | ||
docker compose build | ||
|
||
USER_UID=${USER_UID:-1000} \ | ||
TORRUST_INDEX_CONFIG=$(cat config-index.mysql.local.toml) \ | ||
TORRUST_INDEX_MYSQL_DATABASE="torrust_index_backend_e2e_testing" \ | ||
TORRUST_TRACKER_CONFIG=$(cat config-tracker.local.toml) \ | ||
TORRUST_TRACKER_API_TOKEN=${TORRUST_TRACKER_API_TOKEN:-MyAccessToken} \ | ||
docker compose up -d | ||
docker compose build | ||
|
||
|
||
TORRUST_INDEX_CONFIG=$(cat config-index.mysql.local.toml) \ | ||
TORRUST_INDEX_MYSQL_DATABASE="torrust_index_backend_e2e_testing" \ | ||
TORRUST_TRACKER_CONFIG=$(cat config-tracker.local.toml) \ | ||
TORRUST_TRACKER_API_TOKEN=${TORRUST_TRACKER_API_TOKEN:-MyAccessToken} \ | ||
docker compose up -d | ||
|
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,10 +1,10 @@ | ||
#!/bin/bash | ||
|
||
USER_UID=${USER_UID:-1000} \ | ||
docker compose build | ||
|
||
USER_UID=${USER_UID:-1000} \ | ||
TORRUST_INDEX_CONFIG=$(cat config-index.sqlite.local.toml) \ | ||
TORRUST_TRACKER_CONFIG=$(cat config-tracker.local.toml) \ | ||
TORRUST_TRACKER_API_TOKEN=${TORRUST_TRACKER_API_TOKEN:-MyAccessToken} \ | ||
docker compose up -d | ||
|
||
docker compose build | ||
|
||
|
||
TORRUST_INDEX_CONFIG=$(cat config-index.sqlite.local.toml) \ | ||
TORRUST_TRACKER_CONFIG=$(cat config-tracker.local.toml) \ | ||
TORRUST_TRACKER_API_TOKEN=${TORRUST_TRACKER_API_TOKEN:-MyAccessToken} \ | ||
docker compose up -d |
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,10 @@ | ||
#!/bin/bash | ||
|
||
TORRUST_INDEX_USER_UID=${TORRUST_INDEX_USER_UID:-1000} | ||
TORRUST_INDEX_CONFIG=$(cat config.toml) | ||
|
||
docker run -it \ | ||
--user="$TORRUST_INDEX_USER_UID" \ | ||
--publish 3001:3001/tcp \ | ||
--env TORRUST_INDEX_CONFIG="$TORRUST_INDEX_CONFIG" \ | ||
--volume "$(pwd)/lib/torrust":"/var/lib/torrust" \ | ||
torrust-index-backend | ||
--volume "$(pwd)/source":"/var/lib/torrust" \ | ||
--entrypoint "torrust-index-backend" \ | ||
torrust-index-backend:debug |