github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/cli/tasks/cats-config.yml (about) 1 --- 2 platform: linux 3 4 image_resource: 5 type: docker-image 6 source: 7 repository: relintdockerhubpushbot/cf-deployment-concourse-tasks 8 9 inputs: 10 - name: bosh-lock 11 - name: cf-cli-binaries 12 - name: vars-store 13 14 outputs: 15 - name: cats-config 16 17 params: 18 INCLUDE_V3: 19 BROKER_START_TIMEOUT: 20 CF_PUSH_TIMEOUT: 21 DEFAULT_TIMEOUT: 22 LONG_CURL_TIMEOUT: 23 24 run: 25 path: bash 26 args: 27 - -c 28 - | 29 set -eu 30 31 DOMAIN=`cat bosh-lock/name` 32 API="api.${DOMAIN}" 33 CF_INT_USERNAME="admin" 34 35 ENV=$(cat bosh-lock/name | cut -d "." -f 1) 36 37 pushd vars-store/ci/infrastructure/$ENV 38 eval "$(bbl print-env)" 39 popd 40 41 credhub login 42 CF_INT_PASSWORD=$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -) 43 44 cat << EOF | jq -S . > cats-config/integration_config.json 45 { 46 "admin_password": "${CF_INT_PASSWORD}", 47 "admin_user": "${CF_INT_USERNAME}", 48 "api": "${API}", 49 "apps_domain": "${DOMAIN}", 50 "backend" : "diego", 51 "broker_start_timeout": ${BROKER_START_TIMEOUT}, 52 "cf_push_timeout": ${CF_PUSH_TIMEOUT}, 53 "default_timeout": ${DEFAULT_TIMEOUT}, 54 "long_curl_timeout": ${LONG_CURL_TIMEOUT}, 55 "skip_ssl_validation": true, 56 "use_http": false, 57 "include_apps": true, 58 "include_backend_compatibility": false, 59 "include_container_networking": true, 60 "include_detect": true, 61 "include_docker": true, 62 "include_internet_dependent": true, 63 "include_isolation_segments": true, 64 "isolation_segment_name": "persistent_isolation_segment", 65 "include_persistent_app": false, 66 "include_private_docker_registry": false, 67 "include_privileged_container_support": false, 68 "include_route_services": true, 69 "include_routing": true, 70 "include_routing_isolation_segments": false, 71 "include_security_groups": true, 72 "include_services": true, 73 "include_ssh": true, 74 "include_sso": false, 75 "include_tasks": true, 76 "include_v3": ${INCLUDE_V3}, 77 "include_zipkin": false 78 } 79 EOF 80 81 bindir=${PWD}/bin 82 mkdir -p ${bindir} 83 export PATH=${bindir}:$PATH 84 85 pushd cf-cli-binaries 86 tar xvf cf-cli-binaries.tgz 87 chmod +x cf-cli_linux_x86-64 88 ln -s ${PWD}/cf-cli_linux_x86-64 ${bindir}/cf 89 popd 90 91 export CF_USERNAME=${CF_INT_USERNAME} 92 export CF_PASSWORD=${CF_INT_PASSWORD} 93 cf api ${API} --skip-ssl-validation 94 cf auth 95 cf enable-feature-flag diego_docker