Skip to content

Instantly share code, notes, and snippets.

@ramiroluz
Created June 12, 2019 12:26
Show Gist options
  • Save ramiroluz/15707e0ccc393740af1889cda9aae985 to your computer and use it in GitHub Desktop.
Save ramiroluz/15707e0ccc393740af1889cda9aae985 to your computer and use it in GitHub Desktop.
[buildout]
extends = site.cfg
installed = /data/.custom-installed.cfg
parts +=
portal
[portal]
add-mountpoint = true
admin-user = admin
before-install =
container-path = /
default-language = pt-br
enabled = true
instance = instance
port = 80
post-extras = ${buildout:directory}/cfg_portal.py
pre-extras =
products =
plone.app.caching
plone.resource
BrFieldsAndWidgets
collective.oembed
collective.z3cform.datetimewidget
plone.formwidget.datetime
plone.formwidget.autocomplete
plone.formwidget.contenttree
plone.app.dexterity
sc.social.like
plone.app.event
plone.app.intid
plone.app.theming
plone.app.ldap
interlegis.portalmodelo.buscadores
interlegis.portalmodelo.api
interlegis.portalmodelo.ombudsman
interlegis.portalmodelo.transparency
products-initial =
profiles = plone.app.caching:with-caching-proxy
profiles-initial =
Products.CMFPlone:plone-content
interlegis.portalmodelo.policy:default
protocol = http
recipe = collective.recipe.plonesite
site-id = portal
site-replace = false
upgrade-portal = true
use-vhm = false
[instance]
zeo-address = %ZEO_ADDRESS%
zeo-client = %ZEO_CLIENT%
shared-blob = %SHARED_BLOB%
version: "2"
services:
plone:
#build: .
image: pm3cmc:0.0.2b
restart: always
environment:
ZEO_ADDRESS: zeoserver:8100
ZEO_SHARED_BLOB_DIR: 'on'
ports:
- 8080:8080
- 8881:8881
depends_on:
- zeoserver
volumes:
- data:/data
zeoserver:
#build: .
image: pm3cmc:0.0.2b
restart: always
command: zeoserver
environment:
ZEO_SHARED_BLOB_DIR: 'on'
volumes:
- data:/data
plonecfg:
#build: .
image: pm3cmc:0.0.2b
environment:
ZEO_ADDRESS: zeoserver:8100
EMAIL: "suporte@curitiba.pr.leg.br"
PASSWORD: "nono"
TITLE: "Câmara Municipal de Curitiba"
DESCR: "Curitiba - PR"
HOSTNAME: "portal.curitiba.pr.leg.br"
entrypoint: "/configure.sh"
volumes:
- data:/data
volumes:
data:
driver: local
FROM interlegis/portalmodelo:3.0-20
MAINTAINER "Ramiro Batista da Luz" <ramiroluz@gmail.com>
USER root
COPY site.cfg /plone/instance/
ADD configure.cfg /plone/instance/
RUN apt-get update && \
buildDeps="python-setuptools python-dev build-essential libssl-dev libjpeg62-turbo-dev libldap2-dev libsasl2-dev libbz2-dev libreadline6-dev libxml2-dev libxslt1-dev wget" && \
apt-get install -y --no-install-recommends $buildDeps && \
su -c 'bin/buildout -c site.cfg' plone && \
rm -rf /plone/buildout-cache/downloads/* && \
find /plone \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' + && \
rm -rf /var/lib/apt/lists/* && rm -f /tmp/* && \
chown -R plone:plone /plone /data
USER plone
COPY sitecustomize.py /plone/Python-2.7/lib/python2.7/
[buildout]
extends = buildout.cfg
portalmodelo-versions.cfg
environment-vars = zope_i18n_compile_mo_files true
parts +=
eggs
precompiler
zopepy
warmup
upgrade
index = https://pypi.python.org/simple
find-links =
https://dist.plone.org
https://dist.plone.org/thirdparty
https://pypi.python.org/pypi
http://effbot.org/downloads
newest = false
prefer-final = true
verbose-security = off
[eggs]
eggs =
collective.recipe.plonesite >= 1.9.0
Products.PloneHotfix20150910
plone4.csrffixes
Products.PloneHotfix20151208
Products.PloneHotfix20160419
Products.PloneHotfix20160830
Products.PloneHotfix20161129
Products.PloneHotfix20170117
plone.app.ldap
recipe = zc.recipe.egg:eggs
[instance]
access-log-max-size = 20 MB
access-log-old-files = 5
debug-mode = off
eggs +=
interlegis.portalmodelo.policy
collective.warmup
collective.upgrade
collective.monitor
environment-vars =
CHAMELEON_CACHE ${buildout:directory}/var/chameleon-cache
CHAMELEON_DEBUG false
CHAMELEON_RELOAD true
CHAMELEON_EAGER true
PLONE_CSRF_DISABLED true
PYTHON_EGG_CACHE ${buildout:directory}/var/.python-eggs
PTS_LANGUAGES en, es, pt-br
zope_i18n_allowed_languages en, es, pt_BR
zope_i18n_compile_mo_files true
WARMUP_BIN ${buildout:directory}/bin/warmup
WARMUP_INI ${buildout:directory}/warmup.ini
WARMUP_HEALTH_THRESHOLD 2400
event-log-max-size = 5 MB
event-log-old-files = 5
http-fast-listen = off
zserver-threads = 2
zcml +=
collective.monitor
zope-conf-additional =
<product-config five.z2monitor>
bind 0.0.0.0:8881
</product-config>
[precompiler]
compile-mo-files = true
eggs = ${instance:eggs}
extra-paths = ${buildout:directory}/products
recipe = plone.recipe.precompiler
[zopepy]
eggs = ${instance:eggs}
interpreter = zopepy
recipe = zc.recipe.egg
scripts = zopepy
[warmup]
recipe = zc.recipe.egg:scripts
eggs = collective.warmup
[upgrade]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
scripts = upgrade-portals
arguments = args=[
'--zope-conf', '${instance:location}/etc/zope.conf',
'--log-file', '/data/log/upgrade.log']
[versions]
Cheetah = 2.2.1
Products.DocFinderTab = 1.0.5
ZopeSkel = 2.21.2
buildout.sanitycheck = 1.0b1
collective.recipe.backup = 2.17
collective.recipe.filestorage = 0.7il1
collective.recipe.plonesite = >= 1.9.0
plone.recipe.unifiedinstaller = 4.3.1
zopeskel.dexterity = 1.5.4.1
zopeskel.diazotheme = 1.1
plone4.csrffixes = 1.1
plone.protect = 3.0.24
plone.keyring = 3.0.1
plone.locking = 2.0.9
plone.app.jquery = >= 1.7.2
plone.app.ldap = 1.3.2
Products.CMFQuickInstallerTool = 3.0.12
Products.PlonePAS = 5.0.4
Products.PloneHotfix20161129 = 1.2
Products.PloneHotfix20170117 = 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment