[Checkins] SVN: grok/website/buildouts/production/ Initial buildout for the production plone for grok.zope.org. This is mostly just a list of ToDo items in the README.txt ATM.

Kevin Teague kevin at bud.ca
Tue Nov 13 22:27:57 EST 2007


Log message for revision 81823:
  Initial buildout for the production plone for grok.zope.org. This is mostly just a list of ToDo items in the README.txt ATM.

Changed:
  A   grok/website/buildouts/production/README.txt
  A   grok/website/buildouts/production/bootstrap.py
  A   grok/website/buildouts/production/buildout.cfg

-=-
Added: grok/website/buildouts/production/README.txt
===================================================================
--- grok/website/buildouts/production/README.txt	                        (rev 0)
+++ grok/website/buildouts/production/README.txt	2007-11-14 03:27:55 UTC (rev 81823)
@@ -0,0 +1,38 @@
+Administering the Grok web site
+-------------------------------
+
+This buildout manages the Plone installation. It should be run on the
+grok.zope.org server at /var/zope/grokplone.
+
+The Zope instance serving up the Plone site is running on port 8080,
+and (will be) proxied to using a RewriteRule in the system installation
+of Apache 2.
+
+The Plone content for the Grok web site is located at /plone/public_website/
+inside the Zope instance.
+
+ToDo
+----
+
+Buildout specific known-issues:
+
+ * Package up some eggs!
+
+   Currently we are deploying svn checkouts for the gzo parts.
+
+ * Everything loves to run on port 8080, perhpas we should use a different
+   port for the production Zope.
+
+Things to do to make sure the production site is a happy site:
+
+ * backups! Off-site? Where?
+
+ * caching. Varnish?
+
+ * log analysis tools. What kind of traffic is the site getting?
+
+ * sysadmin support. More than one sysadmin should be familiar
+   with the configuration and be able to fix bits if things go south.
+
+ * sysadmin review. What have we overlooked in the maintenance of the server?
+   Running security updates, etc?

Added: grok/website/buildouts/production/bootstrap.py
===================================================================
--- grok/website/buildouts/production/bootstrap.py	                        (rev 0)
+++ grok/website/buildouts/production/bootstrap.py	2007-11-14 03:27:55 UTC (rev 81823)
@@ -0,0 +1,55 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+try:
+    import pkg_resources
+except ImportError:
+    ez = {}
+    exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                         ).read() in ez
+    ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+    import pkg_resources
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+    cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+    os.P_WAIT, sys.executable, sys.executable,
+    '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+    dict(os.environ,
+         PYTHONPATH=
+         ws.find(pkg_resources.Requirement.parse('setuptools')).location
+         ),
+    ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)

Added: grok/website/buildouts/production/buildout.cfg
===================================================================
--- grok/website/buildouts/production/buildout.cfg	                        (rev 0)
+++ grok/website/buildouts/production/buildout.cfg	2007-11-14 03:27:55 UTC (rev 81823)
@@ -0,0 +1,56 @@
+[buildout]
+parts =
+    plone
+    zope2
+    productdistros
+    instance
+    zopepy
+find-links =
+    http://dist.plone.org
+    http://download.zope.org/ppix/
+    http://effbot.org/downloads
+eggs =
+    elementtree
+    gzo.plonepolicy
+    gzo.plonesmashtheme
+develop =
+    src/gzo.plonepolicy
+    src/gzo.plonesmashtheme
+
+[plone]
+recipe = plone.recipe.plone
+
+[zope2]
+recipe = plone.recipe.zope2install
+url = ${plone:zope2-url}
+
+[productdistros]
+recipe = plone.recipe.distros
+urls =
+    http://plone.org/products/plonehelpcenter/releases/1.5/plonehelpcenter-1-5-alpha1.tgz
+nested-packages =
+version-suffix-packages = 
+
+[instance]
+recipe = plone.recipe.zope2instance
+zope2-location = ${zope2:location}
+debug-mode = off
+verbose-security = off
+user = grok:grok
+eggs =
+    ${buildout:eggs}
+    ${plone:eggs}
+zcml =
+    gzo.plonepolicy
+products =
+    ${productdistros:location}
+    ${plone:products}
+
+[zopepy]
+recipe = zc.recipe.egg
+eggs = ${instance:eggs}
+interpreter = zopepy
+extra-paths = ${zope2:location}/lib/python
+scripts = zopepy
+
+



More information about the Checkins mailing list