Mercurial > treepkg
annotate demostaticweb.cfg @ 560:19a3051caebd
import capture_output
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 02 Sep 2011 09:36:05 +0000 |
parents | ef87d30468b6 |
children |
rev | line source |
---|---|
68
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
1 # Demo config file for publishstaticweb.py. The default config file |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
2 # used by publishstaticweb.py is staticweb.cfg, so to use this file as |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
3 # the basis for your configuration, copy or rename this file and adapt |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
4 # it to your needs. |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
5 |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
6 [staticweb] |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
7 # Username and host on which the treepackager runs. publishstaticweb.py |
78
9a602d8eaa60
initial revision of the subversion repository
Thomas Arendsen Hein <thomas@intevation.de>
parents:
76
diff
changeset
|
8 # has to be able to connect to that host as the build_user via ssh |
9a602d8eaa60
initial revision of the subversion repository
Thomas Arendsen Hein <thomas@intevation.de>
parents:
76
diff
changeset
|
9 # without knowing the password. This is best achieved with the |
68
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
10 # ssh-agent. Also, publishstaticweb.py uses rsync to copy files from |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
11 # build_host to the local host. |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
12 build_user: builder |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
13 build_host: localhost |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
14 |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
15 # the program to run on build_host to create the static web-page. |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
16 # Currently publishstaticweb.py assumes that the default configuration |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
17 # for that program works. |
82
3b9f35a50abf
Make the defaults a bit more useful:
Bernhard Herzog <bh@intevation.de>
parents:
78
diff
changeset
|
18 build_create: ~/treepkg/bin/createstaticweb.py |
68
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
19 |
158
8ec9ed76d67b
Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents:
107
diff
changeset
|
20 # The template for the web-page. This value is passed as the |
8ec9ed76d67b
Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents:
107
diff
changeset
|
21 # --status-template argument to the build_create command on the build |
8ec9ed76d67b
Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents:
107
diff
changeset
|
22 # host. It should be either an absolute filename or a filename relative |
8ec9ed76d67b
Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents:
107
diff
changeset
|
23 # to the ~/treepkg/web/ directory. |
8ec9ed76d67b
Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents:
107
diff
changeset
|
24 build_template: status-by-startdate.html |
8ec9ed76d67b
Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents:
107
diff
changeset
|
25 |
372
ef87d30468b6
Added the option to expose additional log files from the log directory.
Andre Heinecke <aheinecke@intevation.de>
parents:
158
diff
changeset
|
26 # Additional log files can be configured here, those can have non standard |
ef87d30468b6
Added the option to expose additional log files from the log directory.
Andre Heinecke <aheinecke@intevation.de>
parents:
158
diff
changeset
|
27 # names as long as they are contained in the log directory of a package. |
ef87d30468b6
Added the option to expose additional log files from the log directory.
Andre Heinecke <aheinecke@intevation.de>
parents:
158
diff
changeset
|
28 # Filenames have to be seperated by a comma. |
ef87d30468b6
Added the option to expose additional log files from the log directory.
Andre Heinecke <aheinecke@intevation.de>
parents:
158
diff
changeset
|
29 # Default is: build_log.txt.gz |
ef87d30468b6
Added the option to expose additional log files from the log directory.
Andre Heinecke <aheinecke@intevation.de>
parents:
158
diff
changeset
|
30 # build_logs: build_log.txt.gz,tarball_log.txt,pkits_log.txt |
ef87d30468b6
Added the option to expose additional log files from the log directory.
Andre Heinecke <aheinecke@intevation.de>
parents:
158
diff
changeset
|
31 |
68
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
32 # the directory on build_host where the static web-site should be put. |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
33 # This value is used as the parameter to the build_create command on |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
34 # build_host. |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
35 build_dir: /tmp/treepkg-web |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
36 |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
37 # Username and host on which to publish the static pages. |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
38 # publishstaticweb.py uses rsync to copy the files from the local cache |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
39 # to the publish_host. |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
40 publish_user: builder |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
41 publish_host: localhost |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
42 |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
43 # the directory on the publish_host where the web-site resides. It's |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
44 # the directory where the index.html file will be found. The script may |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
45 # delete files under that directory. |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
46 publish_dir: /tmp/treepkg-status |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
47 |
57a0b747ea3e
add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
48 # local cache directory. publishstaticweb.py may delete it and its |
76
7c55fb368d0b
web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents:
68
diff
changeset
|
49 # contents. The value is passed through the python functions |
7c55fb368d0b
web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents:
68
diff
changeset
|
50 # os.path.expanduser and os.path.expandvars, so references to home |
7c55fb368d0b
web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents:
68
diff
changeset
|
51 # directories of the form ~ or ~user at the beginning of the value and |
7c55fb368d0b
web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents:
68
diff
changeset
|
52 # environment variable references of the form $VAR or ${VAR} are |
7c55fb368d0b
web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents:
68
diff
changeset
|
53 # expanded. |
107
38aeaa34fa8c
Include the build host in the default value of cachedir in demostaticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents:
82
diff
changeset
|
54 cachedir: /tmp/${LOGNAME}/treepkg-status-cache/%(build_host)s |