diff --git a/app-config/caimira-webservice/app.sh b/app-config/caimira-webservice/app.sh index 9ea2862a..0d0452c8 100755 --- a/app-config/caimira-webservice/app.sh +++ b/app-config/caimira-webservice/app.sh @@ -13,6 +13,10 @@ if [[ "$APP_NAME" == "caimira-webservice" ]]; then if [ ! -z "$CAIMIRA_CALCULATOR_PREFIX" ]; then args+=("--prefix=${CAIMIRA_CALCULATOR_PREFIX}") fi + + export "ARVE_API_KEY"="$ARVE_API_KEY" + export "ARVE_CLIENT_ID"="$ARVE_CLIENT_ID" + export "ARVE_CLIENT_SECRET"="$ARVE_CLIENT_SECRET" echo "Starting the caimira webservice with: python -m caimira.apps.calculator ${args[@]}" python -m caimira.apps.calculator "${args[@]}" diff --git a/app-config/openshift/deploymentconfig.yaml b/app-config/openshift/deploymentconfig.yaml index 520fa088..5e23cede 100644 --- a/app-config/openshift/deploymentconfig.yaml +++ b/app-config/openshift/deploymentconfig.yaml @@ -209,6 +209,21 @@ value: /calculator-cern - name: CAIMIRA_THEME value: caimira/apps/templates/cern + - name: ARVE_CLIENT_ID + valueFrom: + secretKeyRef: + key: ARVE_CLIENT_ID + name: arve-api + - name: ARVE_CLIENT_SECRET + valueFrom: + secretKeyRef: + key: ARVE_CLIENT_SECRET + name: arve-api + - name: ARVE_API_KEY + valueFrom: + secretKeyRef: + key: ARVE_API_KEY + name: arve-api image: '${PROJECT_NAME}/caimira-webservice' ports: - containerPort: 8080