-
Notifications
You must be signed in to change notification settings - Fork 70
/
apb.spec
342 lines (292 loc) · 14 KB
/
apb.spec
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
%if 0%{?fedora} || 0%{?rhel}
%global use_python3 0
%global use_python2 1
%global pythonbin %{__python2}
%global python_sitelib %{python2_sitelib}
%else
%else
%global use_python3 0
%global use_python2 1
%if 0%{?__python2:1}
%global pythonbin %{__python2}
%global python_sitelib %{python2_sitelib}
%else
%global pythonbin %{__python}
%global python_sitelib %{python_sitelib}
%endif
%endif
%{!?python_sitelib: %define python_sitelib %(%{pythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%if 0%{?copr}
%define build_timestamp .%(date +"%Y%m%d%H%M%%S")
%else
%define build_timestamp %{nil}
%endif
Name: apb
Version: 1.3.1
Release: 1%{build_timestamp}%{?dist}
Summary: Ansible Playbook Bundle (APB) is a lightweight application definition (meta-container).
Group: Development/Tools
License: GPLv2
URL: https://github.com/openshift/ansible-service-broker
Source0: https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/archive/%{name}-%{version}.tar.gz
BuildArch: noarch
%if 0%{?use_python3}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-PyYAML >= 3.10
Requires: python3-PyYAML < 4
Requires: python3-docker >= 2.1.0
Requires: python-openshift >= 1:0.5.0
Requires: python3-jinja2 >= 2.7.2
Requires: python3-requests >= 2.6.0
%else
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: PyYAML >= 3.10
Requires: PyYAML < 4
Requires: python-docker >= 2.1.0
Requires: python-openshift >= 1:0.5.0
Requires: python-jinja2 >= 2.7.2
Requires: python-requests >= 2.6.0
%endif
Requires: docker
%description
Ansible Playbook Bundle (APB) is a lightweight application definition (meta-containers). APB
has the following features:
%package container-scripts
Summary: scripts required for running apb in a container
BuildArch: noarch
Requires: %{name}
%description container-scripts
containers scripts for apb
%prep
%setup -q -n %{name}-%{version}
%build
%{pythonbin} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{pythonbin} setup.py install -O1 --skip-build --root %{buildroot}
install -d -m 755 %{buildroot}/%{_mandir}/man1/
cp docs/apb.1 %{buildroot}/%{_mandir}/man1/apb.1
install -d %{buildroot}%{_bindir}
install -m 755 apb-wrapper %{buildroot}%{_bindir}/apb-wrapper
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/apb
%dir %{python_sitelib}/apb
%{python_sitelib}/apb/*
%{python_sitelib}/apb-*.egg-info
%{_mandir}/man1/apb.1*
%files container-scripts
%{_bindir}/apb-wrapper
%changelog
* Mon Jul 09 2018 Jason Montleon <[email protected]> 1.3.1-1
- APB integration guide for pre existing playbook (#292) ([email protected])
- Bump version (#303) ([email protected])
* Fri Jun 01 2018 David Zager <[email protected]> 1.2.12-1
- Bug 1585010 - Remove apb refresh as an option (#301) ([email protected])
* Thu May 31 2018 Jason Montleon <[email protected]> 1.2.11-1
- Add fix for new automation broker namespace (#297) ([email protected])
- Bug 1581629 - Fix apb relist --secure --ca-path (#299) ([email protected])
* Fri May 25 2018 jesus m. rodriguez <[email protected]> 1.2.10-1
- Bug 1581651 - disable argparse abbreviations (#296) ([email protected])
* Thu May 24 2018 David Zager <[email protected]> 1.2.9-1
- Bug 1581629 - Fix relist to use --ca-path argument (#294)
- relax python-docker version req (#291) ([email protected])
* Thu May 10 2018 David Zager <[email protected]> 1.2.8-1
- Bug 1572452 - Change --secure option to specify CA cert (#285)
- [jjo] apb-docker-run.sh: support $KUBECONFIG, fixes #287 (#288)
- add Bearer string (#284) ([email protected])
- Add some helpful aliases (#282) ([email protected])
* Fri May 04 2018 David Zager <[email protected]> 1.2.7-1
- Update documentation for apb remove (#281) ([email protected])
- Bug 1573714 - PoC token arg support (#258) ([email protected])
- Bug 1526147 - Add instructions for alternative to apb run (#278)
- Bug 1572133 - Update apb remove --all -l to delete all APB images (#276)
* Mon Apr 30 2018 David Zager <[email protected]> 1.2.6-1
- Bump openshift, no max on websocket (#274) ([email protected])
* Fri Apr 27 2018 David Zager <[email protected]> 1.2.5-1
- Bug 1568245 - Deprecate --include-deps flag (#273) ([email protected])
- Bug 1567854 - Add dependency to metadata in apb init (#272)
- Bug 1567845 - Fix apb init with directory suffix (#271) ([email protected])
- Fix typo for dashboard redirect alpha feature (#270) ([email protected])
* Wed Apr 25 2018 David Zager <[email protected]> 1.2.4-1
- Fix setup.py for RPM builds (#267) ([email protected])
* Wed Apr 25 2018 David Zager <[email protected]> 1.2.3-1
- Don't force the use of the containerised apb tools in Makefile commands, apb
should be installed locally using one of the recommended approaches
https://github.com/ansibleplaybookbundle/ansible-playbook-
bundle/blob/master/docs/apb_cli.md#installing-the-apb-tool (#263)
- Added fix if using pip newer than 9.0.3 (#266) ([email protected])
- Add example using oc new-app instead of apb push (#257) ([email protected])
* Thu Apr 19 2018 David Zager <[email protected]> 1.2.2-1
- Bug 1569220 - Add developer documentation on using asb_dashboard_url (#264)
- Fix links to ASB (#262) ([email protected])
* Wed Apr 11 2018 David Zager <[email protected]> 1.2.1-1
- Update developers.md to include parameter validation information (#260)
- Bump version (#255) ([email protected])
- Add a command to refresh all the catalog data (#259) ([email protected])
- Bug 1554138 - Address potential issue where user is forbidden from broker
namespace (#250) ([email protected])
- add instructions for custom error message (#248) ([email protected])
- chore: Minor doc fixes + fix of an error message (#249) ([email protected])
- Add docs teaching APB authors how to consume proxy settings. (#247)
- Bug 1476330 - Add a check for 3.7 development endpoint (#246)
- Openshift doc changed, and routes are now on the network section
(#239) ([email protected])
* Mon Mar 05 2018 David Zager <[email protected]> 1.1.15-1
- Bug 1550017 - Add ability to remove locally pushed APBs (#240)
* Thu Mar 01 2018 Jason Montleon <[email protected]> 1.1.14-1
- Bug 1546843 - Delete images even if registry prefix doesn't match (#238)
* Tue Feb 27 2018 David Zager <[email protected]> 1.1.13-1
- Bug 1546843 - Delete any old images that exist in the registry with apb push
(#227) ([email protected])
* Mon Feb 26 2018 Jason Montleon <[email protected]> 1.1.12-1
- Make flake happy (#234) ([email protected])
- Add explicit error if user is system:admin (#233) ([email protected])
- Add docker port to setup-network script (#232) ([email protected])
* Mon Feb 26 2018 Jason Montleon <[email protected]>
- Make flake happy (#234) ([email protected])
- Add explicit error if user is system:admin (#233) ([email protected])
- Add docker port to setup-network script (#232) ([email protected])
* Mon Feb 26 2018 Jason Montleon <[email protected]> 1.1.10-1
- Add network setup script (#231) ([email protected])
- Fix Canary. pip install -U pip setuptools is failing (#229)
- Bug 1548543 - Fix minishift SSL Error with latest/downstream (#230)
- Fix doc for apb cli container (#228)
* Tue Feb 13 2018 David Zager <[email protected]> 1.1.9-1
- Bug 1537599 - Push when running apb test. (#226) ([email protected])
* Wed Feb 07 2018 David Zager <[email protected]> 1.1.8-1
- Remove alias rec (#224) ([email protected])
- Bug 1536687 - Prevent script from running as root (#225)
* Fri Feb 02 2018 David Zager <[email protected]> 1.1.7-1
- Bug 1540487 - Fix apb remove URL suffix (#222) ([email protected])
- Bug 1541339 - Add action name to apb run pod (#221) ([email protected])
- Bug 1523252 - Prepend broker route with https if no schema supplied (#220)
- Use the host network namespace with containerized apb-tool (#217)
- Bug 1538969 - Add version subcommand to CLI options (#219)
- Add support for minishift to apb container (#211) ([email protected])
- Bug 1533318 - Use internal registry in apb run (#210)
* Tue Jan 23 2018 Jason Montleon <[email protected]> 1.1.6-1
- Bug 1537599 Update the pod_exec call to use kubernetes 4.0 client (#196)
- Bug 1536963 Updates required to work with openshift 0.4.0 (#209)
- Update apb_cli.md ([email protected])
- Bug 1536687 - Add minishift support (#207) ([email protected])
- Add instructions for testing APBs with docker run. (#208)
* Wed Jan 17 2018 David Zager <[email protected]> 1.1.5-1
- Bug 1532972 - Replace needed subcommand argument (#202) ([email protected])
* Tue Jan 16 2018 David Zager <[email protected]> 1.1.4-1
- Apb run bugfixes (#200) ([email protected])
- Update getting_started.md (#199) ([email protected])
- Update apb_cli docs (#198) ([email protected])
- Remove all old references to apb push -o (#194) ([email protected])
- fixes two minor doc typos (#193) ([email protected])
- Don't append ansible-service-broker suffix without a check (#192)
- Generic tool improvements (#187) ([email protected])
* Mon Jan 08 2018 David Zager <[email protected]> 1.1.3-1
- Update tito releasers ([email protected])
- Use the routing prefix for apb commands (#186) ([email protected])
- fix(doc): correct typos (#189) ([email protected])
- Locate the apb route, but avoid the etcd route (#185) ([email protected])
- Added downstream namespace check for getting broker route (#183)
- Document the pattern of creating OpenShift and Kubernetes apbs (#171)
- Add the ability to create most of a serviceinstance template (#158)
* Thu Dec 21 2017 Jason Montleon <[email protected]> 1.1.2-1
- APB Run Command (#178) ([email protected])
- Some basic error handling updates and more customization (#176)
- Fixes typos (#177) ([email protected])
- update apb to apb-tools (#175) ([email protected])
- Fixes #172 - Update docs for container rename (#173) ([email protected])
* Mon Dec 04 2017 Jason Montleon <[email protected]> 1.1.1-1
- Fixed minor errors in getting_started.md ([email protected])
- Fix example for apb remove. ([email protected])
- Issue #169. Fix relist error when using apb remove. ([email protected])
- Add Makefile to apb init (#149) ([email protected])
- Update documentation (#165) ([email protected])
- bump release (#162) ([email protected])
* Tue Nov 07 2017 Jason Montleon <[email protected]> 1.0.4-1
- Bug 1507111 - Add docs for apb push -o (#161) ([email protected])
- Bug 1507111 - Add support to push to internal openshift registry (#159)
- Adding re-list to remove so that the serviceclass is removed. (#160)
- Added bind_parameters to apb list --verbose (#157) ([email protected])
- Better error handling when logged out of the cluster (#156)
- Added constraint on websockets (#147) ([email protected])
* Mon Oct 23 2017 Jason Montleon <[email protected]> 1.0.3-1
- Add missing version (#153) ([email protected])
- return url instead of unmodified route (#152) ([email protected])
* Thu Oct 19 2017 Jason Montleon <[email protected]> 1.0.2-1
- fix issue with apb-wrapper (#148) ([email protected])
- Fix lint errors (#150) ([email protected])
- Require user to specify full route, including protocol and routing suffix
(#146) ([email protected])
* Thu Oct 12 2017 Jason Montleon <[email protected]> 1.0.1-1
- update the releasers (#139) ([email protected])
- Document binding parameters and asynchronous bind. (#138) ([email protected])
- Change broker_resource_url to fix apb relist. (#145) ([email protected])
- Fix pip install and errors when docker runs with a gid in use in the
container (#141) ([email protected])
* Fri Oct 06 2017 Jason Montleon <[email protected]> 1.0.0-1
- added key= to sorted call for Python 2.7.13 (#135) ([email protected])
- Order services by name in apb list (#134) ([email protected])
- Bug 1498613 - Add ability to specify Dockerfile name (#132)
- Bug 1498185 - Move version declaration into APB spec (#129)
* Wed Oct 04 2017 Jason Montleon <[email protected]> 0.2.5-1
- 1497819 - Remove image (#121) ([email protected])
- Changed setup.py URL and changed version in apb init (#128)
- Update to version 0.2.6 - pypi upload errors on 0.2.5 ([email protected])
- Bumping to 0.2.5-2 ([email protected])
- Update to 0.2.5 ([email protected])
- Added versioning explanation to developers.md (#127) ([email protected])
- [Proposal] Versioning of APBs (#117) ([email protected])
- Relist support (#124) ([email protected])
- fixing issue 125 (#126) ([email protected])
- adding ability to authenticate to the broker. (#123)
- This fixes issue-112. (#113) ([email protected])
* Tue Sep 19 2017 Jason Montleon <[email protected]> 0.2.4-1
- Update README.md (#114) ([email protected])
- Adding fix to apb tool to clean up on failed test pod run (#109)
- Update display_type and display_group parameter docs to match UI (#106)
- Add APB testing to the apb tool (#104) ([email protected])
- Added unit testing setup and skeleton (#101) ([email protected])
- Fix alias command in README (#107) ([email protected])
* Tue Aug 29 2017 Jason Montleon <[email protected]> 0.2.3-1
- new package built with tito