Buildout and Plone
        Tim Knapp
     Emerge Technology
    www.emergetec.com
Why Buildout?
Consistency
Dependency Management
Speeds Up Deployment
Buildout Basics
Configuration File

                     [buildout]
                     parts =
                         zope
           ...
Advanced Syntax
 Variable Substitution
         ${parts:option}

         ${plone:eggs}
         ${buildout:directory}
   ...
Buildout Directory
 ●
     bin/
 ●
     bootstrap.py
 ●
     buildout.cfg
 ●
     develop-eggs/
 ●
     downloads/
 ●
    ...
Buildout Options
 ●
     bin-directory
 ●
     develop-eggs-directory
 ●
     eggs-directory
 ●
     parts
 ●
     parts-d...
Parts
               [buildout]
               parts =
                   instance

               [instance]
            ...
Plone Recipes
               [buildout]
               parts =
                   zope2
                   plone
         ...
The Command Line
Command Line Options
               $cd path/to/my/buildout

               $python2.4 bootstrap.py
               Creatin...
Advanced CLI Options
 ●
     -v and -q
      –   increase and decrease verbosity
 ●
     -n and -N
      –   Newest and no...
Wrapping Up
 ●
     Buildout Basics
      –   Configuration File
      –   Buildout Directory
      –   Buildout Options
 ...
Buildout and Plone
Upcoming SlideShare
Loading in...5
×

Buildout and Plone

22,458

Published on

A presentation outlining some Buildout basics particularly in the context of setting up and maintaining a Plone instance.

Published in: Technology, Self Improvement
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
22,458
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
41
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Buildout and Plone

  1. 1. Buildout and Plone Tim Knapp Emerge Technology www.emergetec.com
  2. 2. Why Buildout?
  3. 3. Consistency
  4. 4. Dependency Management
  5. 5. Speeds Up Deployment
  6. 6. Buildout Basics
  7. 7. Configuration File [buildout] parts =     zope     plone     instance [plone] recipe = plone.recipe.plone [zope2] recipe = plone.recipe.zope2instance user = admin:admin eggs = ${plone:eggs} products = ${plone:products} Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  8. 8. Advanced Syntax Variable Substitution ${parts:option} ${plone:eggs} ${buildout:directory} option = ${buildout:directory}/somefolder Option Addition and Removal options = foo bar options += baz options -= foo Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  9. 9. Buildout Directory ● bin/ ● bootstrap.py ● buildout.cfg ● develop-eggs/ ● downloads/ ● eggs/ ● parts/ ● products/ ● src/ Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  10. 10. Buildout Options ● bin-directory ● develop-eggs-directory ● eggs-directory ● parts ● parts-directory ● log-level Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  11. 11. Parts [buildout] parts =     instance [instance] recipe = plone.recipe.zope2instance user = admin:admin eggs = ${plone:eggs} archetypes.schemaextender zcml = archetypes.schemaextender products = ${plone:products} environment­vars =      TZ Pacific/Auckland http­address = 8080 zeo­address = 8000 debug­mode = on verbose­security = on event­log­level = debug Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  12. 12. Plone Recipes [buildout] parts =     zope2     plone     instance [plone] recipe = plone.recipe.plone [zope2] recipe = plone.recipe.zope2install [instance] recipe = plone.recipe.zope2instance user = admin:admin eggs = ${plone:eggs} products = ${plone:products} Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  13. 13. The Command Line
  14. 14. Command Line Options $cd path/to/my/buildout $python2.4 bootstrap.py Creating directory 'mybuildout/bin'. Creating directory 'mybuildout/parts'. Creating directory 'mybuildout/develop­eggs'. Generated script 'mybuildout/bin/buildout'. $ bin/buildout $ bin/instance start Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  15. 15. Advanced CLI Options ● -v and -q – increase and decrease verbosity ● -n and -N – Newest and non-newest modes ● -O and -o – online and offline mode Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  16. 16. Wrapping Up ● Buildout Basics – Configuration File – Buildout Directory – Buildout Options – Parts – Recipes ● Command Line Buildout and Plone NZPUG Meeting Dec 2008 / Tim Knapp
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×