-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuildout.cfg
163 lines (141 loc) · 3.2 KB
/
buildout.cfg
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[buildout]
develop = .
# buildout options
versions = versions
show-picked-versions = true
newest = false
download-cache = ${buildout:directory}/downloads
log-level = INFO
# conda
# offline: make sure all deps are in environment.yml
conda-offline = true
channel-priority = true
override-channels = true
conda-channels = birdhouse defaults conda-forge
## extensions
# use python site-packages
# https://pypi.python.org/pypi/buildout.locallib/
extensions = buildout.locallib
# supervisor extension
#extensions +=
# birdhousebuilder.recipe.supervisor
supervisor-port = 9001
parts =
twitcher
config
mongodb
gunicorn
supervisor
nginx
pytest
sphinx
[environment]
recipe = collective.recipe.environment
[settings]
prefix = ${environment:HOME}/birdhouse
user = ${environment:USER}
etc-user = ${:user}
project = twitcher
version = 0.3
log-level = WARN
hostname = localhost
https-port = 5000
twitcher-url = https://${:hostname}:${:https-port}
mongodb-port = 27027
username =
password =
workdir =
workdir-prefix =
ows-security = true
ows-proxy = true
ows-proxy-delegate = false
ows-proxy-url = true
rpcinterface = true
wps = true
wps-cfg =
[deployment]
recipe = zc.recipe.deployment
name = twitcher
prefix = ${settings:prefix}
user = ${settings:user}
etc-user = ${settings:etc-user}
[twitcher]
recipe = zc.recipe.egg
eggs =
pyramid_twitcher
interpreter = python
[config]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/twitcher.ini
output = ${deployment:etc-directory}/twitcher.ini
prefix = ${deployment:prefix}
socket = ${deployment:var-prefix}/run/twitcher.socket
workers = 3
[mongodb]
recipe = birdhousebuilder.recipe.mongodb
name = mongodb
# conda
pkgs = mongodb
# deployment
prefix = ${deployment:prefix}
user = ${deployment:user}
etc-user = ${deployment:etc-user}
# mongodb config
port = ${settings:mongodb-port}
[gunicorn]
recipe = zc.recipe.egg
eggs =
gunicorn
${twitcher:eggs}
scripts =
gunicorn=gunicorn
[supervisor]
recipe = birdhousebuilder.recipe.supervisor
name = twitcher
# deployment
prefix = ${deployment:prefix}
user = ${deployment:user}
etc-user = ${deployment:etc-user}
# supervisor config
program = ${:name}
command = ${buildout:bin-directory}/gunicorn --paste ${config:output}
[nginx]
recipe = birdhousebuilder.recipe.nginx
name = twitcher
# deployment
prefix = ${deployment:prefix}
user = ${deployment:user}
etc-user = ${deployment:etc-user}
# nginx config
input = ${buildout:directory}/templates/nginx.conf
socket = ${config:socket}
hostname = ${settings:hostname}
https-port = ${settings:https-port}
ssl-verify-client = optional
[pytest]
recipe = zc.recipe.egg
eggs =
pytest
mock
${twitcher:eggs}
[sphinx]
recipe = zc.recipe.egg
eggs =
sphinx
${twitcher:eggs}
[noversions]
[versions]
birdhousebuilder.recipe.mongodb = 0.4.0
birdhousebuilder.recipe.nginx = 0.3.7
buildout.locallib = 0.3.1
collective.recipe.environment = 1.1.0
collective.recipe.template = 2.0
oauthlib = 2.0.6
zc.recipe.deployment = 1.3.0
zc.recipe.egg = 2.0.5
# Required by:
# birdhousebuilder.recipe.mongodb==0.4.0
birdhousebuilder.recipe.conda = 0.3.6
# Required by:
# birdhousebuilder.recipe.mongodb==0.4.0
birdhousebuilder.recipe.supervisor = 0.3.6