Commit 113381a2 authored by Alain Takoudjou's avatar Alain Takoudjou

stack/drupal: fixup, add mysql binaries

parent d0560381
...@@ -8,6 +8,7 @@ extends = ...@@ -8,6 +8,7 @@ extends =
parts += parts +=
instance instance
composer-bin
install-drupal install-drupal
[apache-php] [apache-php]
...@@ -24,6 +25,10 @@ url = ${:_profile_base_location_}/${:filename} ...@@ -24,6 +25,10 @@ url = ${:_profile_base_location_}/${:filename}
[custom-application-deployment] [custom-application-deployment]
db-name = drupal_db db-name = drupal_db
db-user = drupal db-user = drupal
publish-list =
admin-username
admin-password
nextjs-url
[create-next-app] [create-next-app]
recipe = plone.recipe.command recipe = plone.recipe.command
...@@ -46,19 +51,19 @@ stop-on-error = true ...@@ -46,19 +51,19 @@ stop-on-error = true
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
path = ${application:location} path = ${application:location}
configure-command = true configure-command = true
# ${composer-bin:output} config vendor-dir docroot/vendor
make-targets = make-targets =
make-options = make-options =
make-binary = make-binary =
${composer-bin:output} install composer install
# ${composer-bin:output} update # ${composer-bin:output} update
${composer-bin:output} require drupal/next composer require drupal/next
composer require --dev phpunit/phpunit
post-install = post-install =
mkdir -p drush/config mkdir -p drush/config
cp ${pathauto.pattern.article.yml:target} drush/config/ cp ${pathauto.pattern.article.yml:target} drush/config/
environment = environment =
COMPOSER_HOME=@@LOCATION@@ COMPOSER_HOME=@@LOCATION@@
PATH=${apache-php:location}/bin:%(PATH)s PATH=${composer:location}/bin:${apache-php:location}/bin:%(PATH)s
[template-drupal-instance] [template-drupal-instance]
<= drupal-download <= drupal-download
......
...@@ -4,7 +4,7 @@ md5sum = 158282e578bf9416f5e0e524496b9f68 ...@@ -4,7 +4,7 @@ md5sum = 158282e578bf9416f5e0e524496b9f68
[template-drupal-instance] [template-drupal-instance]
filename = drupal-instance.cfg.in filename = drupal-instance.cfg.in
md5sum = cb6606a18968396236699876e55d6269 md5sum = e78f8c1bf06be85554b1455422722703
[template-settings.php] [template-settings.php]
filename = default.settings.php.in filename = default.settings.php.in
......
...@@ -59,9 +59,25 @@ wrapper-path = ${directory:bin}/composer ...@@ -59,9 +59,25 @@ wrapper-path = ${directory:bin}/composer
[blt-bin] [blt-bin]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
command-line = command-line =
${php-bin:wrapper-path} ${directory:www}/vendor/vendor/bin/blt ${php-bin:wrapper-path} ${directory:www}/vendor/bin/blt
wrapper-path = ${directory:bin}/blt wrapper-path = ${directory:bin}/blt
[phpunit-bin]
recipe = slapos.cookbook:wrapper
command-line =
${php-bin:wrapper-path} ${directory:www}/vendor/bin/phpunit
wrapper-path = ${directory:bin}/phpunit
[mysql-bin]
recipe = slapos.cookbook:wrapper
command-line = "{{ mariadb_location }}/bin/mysql"
wrapper-path = ${directory:bin}/mysql
[mysqldump-bin]
recipe = slapos.cookbook:wrapper
command-line = "{{ mariadb_location }}/bin/mysqldump"
wrapper-path = ${directory:bin}/mysqldump
[env-base] [env-base]
recipe = collective.recipe.template recipe = collective.recipe.template
input = inline: input = inline:
...@@ -193,6 +209,10 @@ depends = ...@@ -193,6 +209,10 @@ depends =
${settings.local.php:recipe} ${settings.local.php:recipe}
${composer-bin:recipe} ${composer-bin:recipe}
${drush-bin:recipe} ${drush-bin:recipe}
${phpunit-bin:recipe}
${blt-bin:recipe}
${mysql-bin:recipe}
${mysqldump-bin:recipe}
[drupal-admin-passwd] [drupal-admin-passwd]
recipe = slapos.cookbook:generate.password recipe = slapos.cookbook:generate.password
......
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