Skip to content

Commit

Permalink
set entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhoune committed Sep 11, 2023
1 parent 88d56db commit a115f9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ check_if_exists "$YJS_RESOURCE_PATH" "YJS_RESOURCE_PATH"
check_if_exists "$RASA_NLU" "RASA_NLU"
check_if_exists "$SBF_MANAGER" "SBF_MANAGER"
check_if_exists "$CONTACT_SERVICE_URL" "CONTACT_SERVICE_URL"
check_if_exists "$PM4BOTS_ENDPOINT" "PM4BOTS_ENDPOINT"

#### Set default values ####
export YJS_HOST=${YJS_HOST:-localhost}
Expand All @@ -28,6 +29,7 @@ export OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-localtestclient}
export RASA_NLU=${RASA_NLU:-http://localhost:5005}
export SBF_MANAGER=${SBF_MANAGER:-http://localhost:8080}
export CONTACT_SERVICE_URL=${CONTACT_SERVICE_URL:-http://localhost:8080}
export PM4BOTS_ENDPOINT=${PM4BOTS_ENDPOINT:-http://localhost:8088}

cp config.json.sample config.json

Expand All @@ -39,6 +41,7 @@ sed -i "s=<YJS_RESOURCE_PATH>=$YJS_RESOURCE_PATH=g" config.json
sed -i "s=<CONTACT_SERVICE_URL>=$CONTACT_SERVICE_URL=g" config.json
sed -i "s=<RASA_NLU>=$RASA_NLU=g" config.json
sed -i "s=<SBF_MANAGER_HOST>=$SBF_MANAGER=g" config.json
sed -i "s=<PM4BOTS_ENDPOINT>=$PM4BOTS_ENDPOINT=g" config.json



Expand Down

0 comments on commit a115f9a

Please sign in to comment.