Commit ef07ce85 authored by Alain Takoudjou's avatar Alain Takoudjou

stack/lamp: add composer to stack

parent c781f498
......@@ -67,6 +67,55 @@ db-user = lamp
# Publish default lamp slave frontend url
default-frontend = True
[composer]
recipe = slapos.recipe.build:download
url = https://getcomposer.org/installer
filename = composer-setup.php
[composer-php.ini]
# A minimal php.ini that will be used for composer
recipe = collective.recipe.template
input =
inline:[PHP]
engine = On
safe_mode = Off
expose_php = Off
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = On
display_startup_errors = Off
log_errors = On
zend_extension=opcache
extension=apcu
extension=redis
extension=imagick
apc.enabled=1
[opcache]
opcache.enable=1
opcache.enable_cli=1
output = ${composer:location}/php.ini
[composer-setup]
recipe = plone.recipe.command
command =
INSTAL_DIR=${composer:location}/bin
PATH=${apache-php:location}/bin:$PATH
mkdir -p $INSTAL_DIR
php ${composer:location}/composer-setup.php --install-dir=$INSTAL_DIR --filename=composer-bin
stop-on-error = true
update-command = ${:command}
[composer-bin]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
export PATH=${apache-php:location}/bin:$PATH
php -c ${composer-php.ini:output} ${composer:location}/bin/composer-bin "$@"
output = ${composer:location}/bin/composer
mode = 755
#----------------
#-- Instance-level buildout profiles.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment