Skip to content

Commit

Permalink
Updated the worker image to load custom settings.
Browse files Browse the repository at this point in the history
The worker container was not loading the custom settings due
to the environment variable was being replaced.

Signed-off-by: Jose Javier Merchante <jjmerchante@bitergia.com>
  • Loading branch information
jjmerchante committed Sep 3, 2024
1 parent 746e851 commit b0b8926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/server-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ source /opt/venv/bin/activate
set -e

# Default configuration
export SORTINGHAT_CONFIG=sortinghat.config.settings
export SORTINGHAT_CONFIG="${SORTINGHAT_CONFIG:-sortinghat.config.settings}"

sortinghat_check_service() {
django-admin check --settings=$SORTINGHAT_CONFIG --database default > /dev/null 2>&1
Expand Down
2 changes: 1 addition & 1 deletion docker/worker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ source /opt/venv/bin/activate
set -e

# Default configuration
export SORTINGHAT_CONFIG=sortinghat.config.settings
export SORTINGHAT_CONFIG="${SORTINGHAT_CONFIG:-sortinghat.config.settings}"

# Build the command to run
set - sortinghatw "$@"
Expand Down

0 comments on commit b0b8926

Please sign in to comment.