Merge branch 'lamp' into master
[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 = slapos.recipe.build
18 url = http://www.prestashop.com/download/prestashop_1.4.5.1.zip
19 md5sum = 3d19305d728f7e8a19f81f9f326b9383
20 script =
21   if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
22   extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum')))
23   workdir = guessworkdir(extract_dir)
24   self.copyTree(workdir, "${buildout:parts-directory}/${:_buildout_section_name_}")
25   
26 [instance-recipe]
27 egg = slapos.cookbook
28 module = lamp.simple
29
30 [template]
31 # Default template for the instance.
32 recipe = slapos.recipe.template
33 url = ${:_profile_base_location_}/instance.cfg
34 #${:_profile_base_location_}/instance.cfg
35 #md5sum = Student shall put md5 of instance.cfg here
36 output = ${buildout:directory}/template.cfg
37 mode = 0644
38
39 [instance-recipe-egg]
40 recipe = zc.recipe.egg
41 python = python2.7
42 eggs =
43     ${mysql-python:egg}
44     ${instance-recipe:egg}
45     slapos.toolbox[lampconfigure]
46
47 [versions]
48 # Use SlapOS patched zc.buildout
49 zc.buildout = 1.5.3-dev-SlapOS-010
50
51 [downloadcache-workaround]
52 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
53 # creates download cache, which in turn switches builout to "semi-offline" mode
54 recipe = plone.recipe.command
55 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
56 # to ${buildout:directory}/downloads but this variable is available late, that's
57 # why it is hardcoded only for required case
58 download-cache = ${buildout:directory}/downloads
59 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
60 update-command = ${:command}
61 stop-on-error = True