forked from GSA/catalog.data.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.yml
93 lines (90 loc) · 3.07 KB
/
manifest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
# To apply this manifest: cf push --vars-file vars.yml
applications:
- name: ((app_name))
buildpacks:
- https://github.com/cloudfoundry/apt-buildpack
- python_buildpack
services:
- ((app_name))-db
- ((app_name))-redis
- ((app_name))-secrets
- ((app_name))-solr
- sysadmin-users
routes:
- route: ((routes-internal))
health-check-type: http
health-check-http-endpoint: /dataset
health-check-invocation-timeout: 30
instances: ((web-instances))
disk_quota: 2G
memory: ((memory_quota))
command: ./ckan/setup/server_start.sh
env:
CKANEXT__SAML2AUTH__IDP_METADATA__LOCAL_PATH: ((ckanext__saml2auth__idp_metadata__local_path))
CKANEXT__SAML2AUTH__ENTITY_ID: ((ckanext__saml2auth__entity_id))
SAML2_CERTIFICATE: ((saml2_certificate))
NEW_RELIC_APP_NAME: ((new_relic_app_name))
NEW_RELIC_HOST: gov-collector.newrelic.com
NEW_RELIC_MONITOR_MODE: ((new_relic_monitor_mode))
CKAN_SITE_URL: https://((routes-external))
- name: ((app_name))-proxy
buildpacks:
- https://github.com/cloudfoundry/nginx-buildpack
path: ./proxy
# TODO: tweak with load testing
memory: 100M
routes:
- route: ((routes-external))
env:
PUBLIC_ROUTE: ((routes-public))
EXTERNAL_ROUTE: ((routes-external))
INTERNAL_ROUTE: ((routes-internal))
- name: ((app_name))-gather
buildpacks:
- https://github.com/cloudfoundry/apt-buildpack
- python_buildpack
services:
- ((app_name))-db
- ((app_name))-redis
- ((app_name))-secrets
- ((app_name))-solr
- sysadmin-users
no-route: true
instances: ((gather-instances))
disk_quota: 1.2G
memory: ((gather_memory_quota))
command: ckan harvester gather-consumer
health-check-type: process
timeout: 15
env:
CKANEXT__SAML2AUTH__IDP_METADATA__LOCAL_PATH: ((ckanext__saml2auth__idp_metadata__local_path))
CKANEXT__SAML2AUTH__ENTITY_ID: ((ckanext__saml2auth__entity_id))
SAML2_CERTIFICATE: ((saml2_certificate))
NEW_RELIC_APP_NAME: ((new_relic_app_name))
NEW_RELIC_HOST: gov-collector.newrelic.com
NEW_RELIC_MONITOR_MODE: ((new_relic_monitor_mode))
CKAN_SITE_URL: https://((routes-external))
- name: ((app_name))-fetch
buildpacks:
- https://github.com/cloudfoundry/apt-buildpack
- python_buildpack
services:
- ((app_name))-db
- ((app_name))-redis
- ((app_name))-secrets
- ((app_name))-solr
- sysadmin-users
no-route: true
instances: ((fetch-instances))
command: ckan harvester fetch-consumer
health-check-type: process
timeout: 15
env:
CKANEXT__SAML2AUTH__IDP_METADATA__LOCAL_PATH: ((ckanext__saml2auth__idp_metadata__local_path))
CKANEXT__SAML2AUTH__ENTITY_ID: ((ckanext__saml2auth__entity_id))
SAML2_CERTIFICATE: ((saml2_certificate))
NEW_RELIC_APP_NAME: ((new_relic_app_name))
NEW_RELIC_HOST: gov-collector.newrelic.com
NEW_RELIC_MONITOR_MODE: ((new_relic_monitor_mode))
CKAN_SITE_URL: https://((routes-external))