source: cmfdeployment/branches/kenw-p4-wip/docs/thoughts.stx @ 2380

Last change on this file since 2380 was 2380, checked in by kenw, 8 years ago

Committing new branch intended for Plone 4 compatibility; mostly required imports of new zope packages

File size: 2.9 KB
Line 
1
2
3Static Deployment Tool
4
5  Stages
6
7    Identify objects for deployment
8
9      - content types
10
11      - folder
12
13      - business logic /deployment policy
14         
15        - error handling
16               
17          - global level
18               
19            - abort the whole process
20            - extensive logs
21            - scream help
22
23          - local level
24
25            - tool options
26
27            - decisions options         
28
29                 - ignore
30
31                 - log
32       
33                 - abort (aborts all deployment)
34
35    Organize Documents
36     
37      Structure     
38
39      - target directory structure
40
41      Rules
42
43      - source folder
44 
45      - any catalogable metadata attribute
46
47      - precedence
48
49        (take which ever one comes in the stack last,
50         in the case of conflict go with the first one
51         to match.)
52
53      Overkill Constraint Proof Algorithm
54
55        - logilab's constraint module.
56
57        - look for
58
59    Marshal Cook Documents
60
61      - presentation templates
62
63      - pipeline handlers
64       
65        - html
66
67        - xml
68
69        - zip
70
71        - xsl
72
73        - archive local copy
74
75      - templates that will
76
77      - context bound to source object in source folder
78
79      Exceptions
80
81        reuse error options as before, tool option for
82        error handling conditions by stage.
83
84    Deploy To Target
85
86      - target information (host, port)
87
88        - credential information ..
89
90      - plugin protocols
91
92        - rsync 
93               
94        (only protocol support retraction in a non client daemon setup)
95       
96        - ftp
97       
98        - http post -- ?
99       
100        - scp
101
102      Error handling
103
104        - WARNING transactional deployment only available with client
105          daemon.
106
107        - log
108
109    Client Daemon/Tool.
110
111        - reactor loop
112
113        - target directory base path
114
115        - plugins for reactor
116
117        Protocol
118
119        Deployment Manifest
120        - time deployment was created. (version num/label??)
121        - manifest sizes, file names, total count.
122
123        Startup
124
125          - check server credentials.
126
127          - check local environment.
128       
129          // - action type (deployment, retraction)
130
131          Code Path For Deployment
132
133          - ask the server for a deployment manifest
134
135          - check local enviroment (total file size, etc.)
136
137          - respond yes, or error condition
138
139          - server starts transfering files.
140
141          - client stores in a tmp directory
142
143          - on error condition or time out,
144            or a manifest conflict we
145            talk to our error handler plugin
146            and clean out the tmp directory.
147
148          - after finish of transfer (manifrest complete).
149           
150          XXX
151          - scripts to run before replace.
152
153          - scripts to run after replace to target directory
154
155          - clean out tmp
156
157          // - ??? Future, do time stamp checks of overwrites.
158
159      Path for retraction
160
161          - we need to be archiving.
162
163
164    Retraction.
165       
166        - clean up working directory before starting deployment process.
167
168        - log it.
169
170   
171  Design
172
173    DeploymentDescripitor
174      - Source Destination
175
176    Content Type Registry integration.
177
178    Folder publishing options ala syndication.
179
180    ?       - DeploymentGuardScript
181
182    Tool associated Deployment Guard used for possible deployment content
183
184
185  Later
186
187    Workflow Integration.
188
189
Note: See TracBrowser for help on using the repository browser.