Skip to content

Commit

Permalink
CARDS-2317: Split CARDS into multiple projects
Browse files Browse the repository at this point in the history
Rename CARDS_PROJECT_VERSION to PROJECT_VERSION
  • Loading branch information
sdumitriu committed Feb 5, 2024
1 parent bdb6e6a commit fe2e126
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions distribution/docker_entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ VALID_CARDS_PROJECTS="||cards4kids|cards4lfs|cards4proms|cards4prems|cards4herac
echo "${VALID_CARDS_PROJECTS}" | grep -q "|${CARDS_PROJECT}|" || { echo "Invalid project specified - defaulting to generic CARDS."; unset CARDS_PROJECT; }

featureFlagString=""
if [ ! -z $CARDS_PROJECT ] && [ ! -z $CARDS_PROJECT_VERSION ]
if [ ! -z $CARDS_PROJECT ] && [ ! -z $PROJECT_VERSION ]
then
featureFlagString="$featureFlagString -f mvn:io.uhndata.cards/${CARDS_PROJECT}/${CARDS_PROJECT_VERSION}/slingosgifeature"
featureFlagString="$featureFlagString -f mvn:io.uhndata.cards/${CARDS_PROJECT}/${PROJECT_VERSION}/slingosgifeature"
fi

[[ "${CARDS_PROJECT}" == 'cards4proms' || "${CARDS_PROJECT}" == 'cards4prems' ]] && SMTPS_ENABLED="true"
Expand Down Expand Up @@ -137,7 +137,7 @@ do
done

# Read /sling-features.json and enable the features required for this project
PROJECT_REQUIRED_FEATURES=$(CARDS_VERSION=${CARDS_VERSION} PROJECT_NAME=${CARDS_PROJECT} PROJECT_VERSION=${CARDS_VERSION} PERMISSIONS=${PERMISSIONS} python3 /get_project_dependency_features.py /sling-features.json)
PROJECT_REQUIRED_FEATURES=$(CARDS_VERSION=${CARDS_VERSION} PROJECT_NAME=${CARDS_PROJECT} PROJECT_VERSION=${PROJECT_VERSION} PERMISSIONS=${PERMISSIONS} python3 /get_project_dependency_features.py /sling-features.json)
if [ ! -z $PROJECT_REQUIRED_FEATURES ]
then
featureFlagString="$featureFlagString -f $PROJECT_REQUIRED_FEATURES"
Expand All @@ -154,7 +154,7 @@ echo "ADDITIONAL_SLING_FEATURES = $ADDITIONAL_SLING_FEATURES"
echo "CARDS_ARTIFACTID = $CARDS_ARTIFACTID"
echo "CARDS_VERSION = $CARDS_VERSION"
echo "CARDS_PROJECT = $CARDS_PROJECT"
echo "CARDS_PROJECT_VERSION = $CARDS_PROJECT_VERSION"
echo "PROJECT_VERSION = $PROJECT_VERSION"

#Are we using an external MongoDB service for data storage?
EXT_MONGO_VARIABLES=""
Expand Down

0 comments on commit fe2e126

Please sign in to comment.