Skip to content

Commit

Permalink
Fix SAJ for CF
Browse files Browse the repository at this point in the history
  • Loading branch information
ilayaperumalg committed Dec 20, 2018
1 parent b7a7ef9 commit 5cb9b8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion cloudfoundry/init/env.properties
Expand Up @@ -27,4 +27,3 @@ SCHEDULES_PLAN_NAME=standard
SCHEDULES_INSTANCE_NAME=atscheduler
SPRING_CLOUD_COMMON_SECURITY_ENABLED=false
SPRING_CLOUD_DATAFLOW_FEATURES_ANALYTICS_ENABLED=false
SPRING_APPLICATION_JSON="'{ "maven": { "remote-repositories": { "repo1": { "url": "$MAVEN_REMOTE_REPOSITORIES_REPO1_URL" } } } }'"
11 changes: 10 additions & 1 deletion cloudfoundry/server/create.sh
Expand Up @@ -38,7 +38,6 @@ cat << EOF >> ./scdf-manifest.yml
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_PASSWORD: $SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_PASSWORD
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_SKIP_SSL_VALIDATION: $SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_SKIP_SSL_VALIDATION
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_STREAM_SERVICES: $SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_STREAM_SERVICES
SPRING_APPLICATION_JSON: $SPRING_APPLICATION_JSON
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_STREAM_API_TIMEOUT: $SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_API_TIMEOUT
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_TASK_API_TIMEOUT: $SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_API_TIMEOUT
TRUST_CERTS: $TRUST_CERTS
Expand All @@ -53,6 +52,16 @@ cat << EOF >> ./scdf-manifest.yml
SPRING_CLOUD_DATAFLOW_FEATURES_ANALYTICS_ENABLED: $SPRING_CLOUD_DATAFLOW_FEATURES_ANALYTICS_ENABLED
EOF

if [ -z "$SPRING_APPLICATION_JSON" ]; then
cat << EOF >> ./scdf-manifest.yml
SPRING_APPLICATION_JSON: '{ "maven": { "remote-repositories": { "repo1": { "url": "$MAVEN_REMOTE_REPOSITORIES_REPO1_URL" } } }}'
EOF
else
cat << EOF >> ./scdf-manifest.yml
SPRING_APPLICATION_JSON: $SPRING_APPLICATION_JSON
EOF
fi

if [ "$schedulesEnabled" ]; then
cat << EOF >> ./scdf-manifest.yml
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_TASK_SERVICES: $SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_TASK_SERVICES,$SCHEDULES_INSTANCE_NAME
Expand Down

0 comments on commit 5cb9b8e

Please sign in to comment.