Merge branch 'lamp'
[slapos.git] / software / prestashop / software.cfg
1 [buildout]
2 versions = versions
3
4 parts =
5   template
6   apache-php
7   mariadb
8   eggs
9   instance-recipe-egg
10   downloadcache-workaround
11   
12 extends =
13   ../../stack/lamp.cfg
14   ../../stack/shacache-client.cfg
15
16 [application]
17 recipe = hexagonit.recipe.download
18 url = http://www.prestashop.com/download/prestashop_1.4.4.1.zip
19 md5sum = 08206798517ea22c0122640b05c7df73
20 #If provided tarball does not contain top directory, option shall be changed to false
21 #strip-top-level-dir = true
22
23 [application-template]
24 recipe = slapos.recipe.download
25 url = ${:_profile_base_location_}/template/prestashop.inc.php.in
26 #md5sum = Student may put here md5sum of this file, this is good idea
27 download-only = True
28 filename = template.in
29 mode = 0644
30 location = ${buildout:parts-directory}/${:_buildout_section_name_}
31
32 [application-configuration]
33 location = config.inc.php
34   
35 [instance-recipe]
36 egg = slapos.cookbook
37 module = lamp.simple
38
39 [template]
40 # Default template for the instance.
41 recipe = slapos.recipe.template
42 url = ${:_profile_base_location_}/instance.cfg
43 #${:_profile_base_location_}/instance.cfg
44 #md5sum = Student shall put md5 of instance.cfg here
45 output = ${buildout:directory}/template.cfg
46 mode = 0644
47
48 [instance-recipe-egg]
49 recipe = zc.recipe.egg
50 python = python2.7
51 eggs = ${instance-recipe:egg}
52
53 [versions]
54 # Use SlapOS patched zc.buildout
55 zc.buildout = 1.5.3-dev-SlapOS-010
56
57 [downloadcache-workaround]
58 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
59 # creates download cache, which in turn switches builout to "semi-offline" mode
60 recipe = plone.recipe.command
61 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
62 # to ${buildout:directory}/downloads but this variable is available late, that's
63 # why it is hardcoded only for required case
64 download-cache = ${buildout:directory}/downloads
65 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
66 update-command = ${:command}
67 stop-on-error = True