Skip to content

Commit 54a54ef

Browse files
committed
Refactored buildout files
1 parent 4ab027a commit 54a54ef

11 files changed

Lines changed: 318 additions & 363 deletions

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ COPY --chown=imio scripts /plone/scripts
4141
RUN mkdir /plone/bin && chown imio:imio /plone/bin
4242
RUN ln -s /usr/bin/pip3 /plone/bin/pip
4343

44-
RUN su -c "buildout -c prod.cfg -t 30 -N" -s /bin/sh imio
44+
RUN su -c "buildout -c docker.cfg -t 30 -N" -s /bin/sh imio
4545

4646

4747
FROM harbor.imio.be/common/plone-base:6.1.1

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ buildout: ## Runs setup and buildout
2929
# if ! test -d /srv/cache/download/dist; then mkdir /srv/cache/download/dist || true; fi
3030
# if ! test -f /srv/cache/download/dist/appy-1.0.15.tar.gz; then scp -o 'StrictHostKeyChecking no' docs001:/srv/cache/download/dist/appy-1.0.15.tar.gz /srv/cache/download/dist/ || true; fi
3131
# if ! test -f var/filestorage/Data.fs;then make standard-config; else bin/buildout -v;fi
32-
bin/buildout -v
33-
git checkout .gitignore
32+
bin/buildout
33+
# git checkout .gitignore
3434

3535
.PHONY: copy
3636
copy: copy-data.sh ## Runs `copy-data.sh`

base.cfg

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ extensions =
55
show-picked-versions = true
66
allow-picked-versions = false
77

8-
98
parts =
10-
dists-download
11-
dists-egg
9+
; dists-download
10+
; dists-egg
1211
omelette
1312
instance1
1413
zopepy
@@ -18,7 +17,7 @@ extends =
1817
https://dist.plone.org/release/6.1.1/versions.cfg
1918
https://raw.github.com/plone/buildout.dexterity/master/sources.cfg
2019
versions-base.cfg
21-
sources-base.cfg
20+
; sources-base.cfg
2221

2322
versions=versions
2423

@@ -37,19 +36,20 @@ develop =
3736

3837
always-checkout = force
3938
auto-checkout +=
40-
collective.contact.importexport
41-
collective.externaleditor
42-
collective.portlet.actions
43-
collective.z3cform.select2
44-
eea.facetednavigation
45-
imio.dms.mail
46-
imio.transmogrifier.contact
47-
imio.transmogrifier.iadocs
48-
plone.formwidget.datetime
49-
Products.CMFEditions
50-
Products.CPUtils
51-
transmogrify.dexterity
52-
zope.sendmail
39+
; collective.contact.importexport
40+
; collective.externaleditor
41+
; collective.portlet.actions
42+
; collective.relationhelpers
43+
; collective.z3cform.select2
44+
; eea.facetednavigation
45+
; imio.dms.mail
46+
; imio.transmogrifier.contact
47+
; imio.transmogrifier.iadocs
48+
; plone.formwidget.datetime
49+
; Products.CMFEditions
50+
; Products.CPUtils
51+
; transmogrify.dexterity
52+
; zope.sendmail
5353

5454
[dists-download]
5555
recipe = collective.recipe.cmd
@@ -78,7 +78,9 @@ http-address = ${port:instance1-http}
7878
zserver-threads = 4
7979
debug-mode = off
8080
verbose-security = off
81+
zodb-temporary-storage = off
8182
zope-conf-additional =
83+
; extensions ${buildout:directory}/Extensions
8284
%define FILESTORAGE ${buildout:directory}/var/filestorage
8385
%define BLOBSTORAGE ${buildout:directory}/var/blobstorage
8486
%include ${buildout:directory}/zope_add.conf
@@ -98,22 +100,22 @@ environment-vars =
98100

99101
eggs =
100102
${buildout:eggs}
101-
collective.upgrade
103+
; collective.upgrade
102104
# imio.dms.policy
103105
# Products.PrintingMailHost
104106

105107
zcml =
106108
# imio.dms.policy
107-
imio.pm.wsclient
108-
imio.pm.locales
109+
; imio.pm.wsclient
110+
; imio.pm.locales
109111

110112
products =
111113

112114
[upgrade]
113115
recipe = zc.recipe.egg
114116
eggs =
115117
${instance1:eggs}
116-
${debug:eggs}
118+
; ${debug:eggs}
117119
scripts = upgrade-portals
118120
arguments = args=[
119121
'--zope-conf', '${instance1:location}/etc/zope.conf',
@@ -144,7 +146,7 @@ post-extras = standard-config.py
144146
eggs =
145147
ipdb
146148
iw.debug
147-
profilehooks
149+
; profilehooks
148150
zcml =
149151
iw.debug
150152

buildout-main.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
extends =
44
base.cfg
55
port.cfg
6-
amqp.cfg
6+
# amqp.cfg
77
# prod.cfg
88
sources.cfg
99
dev.cfg

dev.cfg

Lines changed: 94 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -6,83 +6,83 @@ allow-picked-versions = true
66

77
parts +=
88
instance-amqp
9-
upgrade
9+
; upgrade
1010
cmds
1111

1212
always-checkout = force
1313
auto-checkout +=
14-
Products.CPUtils
15-
Products.PasswordStrength
16-
appy
17-
collective.behavior.internalnumber
18-
collective.behavior.talcondition
19-
collective.classification.folder
20-
collective.classification.tree
21-
collective.compoundcriterion
22-
collective.contact.core
23-
collective.contact.contactlist
24-
collective.contact.duplicated
25-
collective.contact.facetednav
26-
collective.contact.plonegroup
27-
collective.contact.widget
28-
collective.dms.basecontent
29-
collective.dms.batchimport
30-
collective.dms.mailcontent
31-
collective.dms.scanbehavior
32-
# collective.dms.thesaurus
33-
collective.documentgenerator
34-
# collective.documentviewer
35-
collective.eeafaceted.batchactions
36-
collective.eeafaceted.collectionwidget
37-
collective.eeafaceted.dashboard
38-
collective.eeafaceted.z3ctable
39-
collective.excelexport
40-
collective.externaleditor
41-
collective.iconifiedcategory
42-
collective.ckeditor
43-
# collective.ckeditortemplates
44-
collective.js.datatables
45-
collective.js.tooltipster
46-
# collective.local.workspace
47-
collective.messagesviewlet
48-
collective.querynextprev
49-
collective.schedulefield
50-
collective.task
51-
collective.wfadaptations
52-
collective.z3cform.select2
53-
collective.zamqp
54-
communesplone.layout
55-
dexterity.localroles
56-
dexterity.localrolesfield
57-
# eea.facetednavigation
58-
# eea.faceted.vocabularies
59-
ftw.labels
60-
imio.actionspanel
61-
imio.annex
62-
imio.dashboard
63-
imio.dataexchange.core
64-
imio.dms.policy
65-
imio.dms.soap2pm
66-
imio.fpaudit
67-
imio.helpers
68-
imio.history
69-
imio.migrator
70-
imio.pm.locales
71-
imio.pm.wsclient
72-
imio.prettylink
73-
imio.pyutils
74-
# imio.restapi
75-
imio.zamqp.core
76-
imio.zamqp.dms
77-
# plone.app.jquerytools
78-
plone.app.robotframework
79-
# plone.app.workflowmanager
80-
# plone.dexterity
81-
# plone.restapi
82-
plonetheme.imioapps
14+
; Products.CPUtils
15+
; Products.PasswordStrength
16+
; appy
17+
; collective.behavior.internalnumber
18+
; collective.behavior.talcondition
19+
; collective.classification.folder
20+
; collective.classification.tree
21+
; collective.compoundcriterion
22+
; collective.contact.core
23+
; collective.contact.contactlist
24+
; collective.contact.duplicated
25+
; collective.contact.facetednav
26+
; collective.contact.plonegroup
27+
; collective.contact.widget
28+
; collective.dms.basecontent
29+
; collective.dms.batchimport
30+
; collective.dms.mailcontent
31+
; collective.dms.scanbehavior
32+
;# collective.dms.thesaurus
33+
; collective.documentgenerator
34+
;# collective.documentviewer
35+
; collective.eeafaceted.batchactions
36+
; collective.eeafaceted.collectionwidget
37+
; collective.eeafaceted.dashboard
38+
; collective.eeafaceted.z3ctable
39+
; collective.excelexport
40+
; collective.externaleditor
41+
; collective.iconifiedcategory
42+
; collective.ckeditor
43+
;# collective.ckeditortemplates
44+
; collective.js.datatables
45+
; collective.js.tooltipster
46+
;# collective.local.workspace
47+
; collective.messagesviewlet
48+
; collective.querynextprev
49+
; collective.schedulefield
50+
; collective.task
51+
; collective.wfadaptations
52+
; collective.z3cform.select2
53+
; collective.zamqp
54+
; communesplone.layout
55+
; dexterity.localroles
56+
; dexterity.localrolesfield
57+
;# eea.facetednavigation
58+
;# eea.faceted.vocabularies
59+
; ftw.labels
60+
; imio.actionspanel
61+
; imio.annex
62+
; imio.dashboard
63+
; imio.dataexchange.core
64+
; imio.dms.policy
65+
; imio.dms.soap2pm
66+
; imio.fpaudit
67+
; imio.helpers
68+
; imio.history
69+
; imio.migrator
70+
; imio.pm.locales
71+
; imio.pm.wsclient
72+
; imio.prettylink
73+
; imio.pyutils
74+
;# imio.restapi
75+
; imio.zamqp.core
76+
; imio.zamqp.dms
77+
;# plone.app.jquerytools
78+
; plone.app.robotframework
79+
;# plone.app.workflowmanager
80+
;# plone.dexterity
81+
;# plone.restapi
82+
; plonetheme.imioapps
8383

8484
[instance1]
85-
initialization = import shutup; shutup.please()
85+
;initialization = import shutup; shutup.please()
8686
#use the instance1 eggs to extends the base eggs defined in [buildout]
8787
#webdav-address=1980
8888
debug-mode = on
@@ -93,20 +93,20 @@ environment-vars +=
9393
# Z3C_AUTOINCLUDE_DEBUG True
9494

9595
eggs +=
96-
${debug:eggs}
97-
shutup
96+
; ${debug:eggs}
97+
; shutup
9898
# Products.PDBDebugMode
99-
Products.PrintingMailHost
100-
collective.wfautodoc
99+
; Products.PrintingMailHost
100+
; collective.wfautodoc
101101
# imio.restapi
102-
plone.app.workflowmanager
102+
; plone.app.workflowmanager
103103
# wildcard.fixpersistentutilities
104104

105105
zcml +=
106-
${debug:zcml}
106+
; ${debug:zcml}
107107

108108
zope-conf-additional +=
109-
${zope-conf:zamqp}
109+
; ${zope-conf:zamqp}
110110
# <clock-server>
111111
# method /${port:plone-path}/@@cron-tick
112112
# period 3600
@@ -123,18 +123,19 @@ cmds =
123123
# cd ${buildout:directory}/src/collective.contact.widget; git checkout contactlist-filtering; git pull;
124124
# cd ${buildout:directory}/src/imio.dms.mail; git checkout count_todos; git pull;
125125

126-
[instance-amqp]
127-
<= instance1
128-
zserver-threads = 1
129-
eggs =
130-
${instance1:eggs}
131-
imio.zamqp.dms
132-
zcml =
133-
${instance1:zcml}
134-
imio.zamqp.dms
135-
http-address = ${port:instance-amqp-http}
136-
zope-conf-additional =
137-
%define FILESTORAGE ${buildout:directory}/var/filestorage
138-
%define BLOBSTORAGE ${buildout:directory}/var/blobstorage
139-
${zope-conf:zamqp}
140-
${zope-conf:amqp}
126+
;[instance-amqp]
127+
;<= instance1
128+
;zserver-threads = 1
129+
;eggs =
130+
; ${instance1:eggs}
131+
; imio.zamqp.dms
132+
;zcml =
133+
; ${instance1:zcml}
134+
; imio.zamqp.dms
135+
;http-address = ${port:instance-amqp-http}
136+
;zope-conf-additional =
137+
;; publisher-profile-file ${buildout:directory}/profile.dat
138+
; %define FILESTORAGE ${buildout:directory}/var/filestorage
139+
; %define BLOBSTORAGE ${buildout:directory}/var/blobstorage
140+
;; ${zope-conf:zamqp}
141+
;; ${zope-conf:amqp}

docker.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[buildout]
2+
# Add the config name you want to use in the extends attribute: dev.cfg, prod.cfg, ...
3+
extends =
4+
base.cfg
5+
port.cfg
6+
# amqp.cfg
7+
prod.cfg
8+
sources-prod.cfg

0 commit comments

Comments
 (0)