Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos
Commits
b30122ef
Commit
b30122ef
authored
Apr 25, 2023
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add drupal software release
parent
cafcac83
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
194 additions
and
0 deletions
+194
-0
software/drupal/buildout.hash.cfg
software/drupal/buildout.hash.cfg
+3
-0
software/drupal/drupal-instance.cfg.in
software/drupal/drupal-instance.cfg.in
+68
-0
software/drupal/software.cfg
software/drupal/software.cfg
+123
-0
No files found.
software/drupal/buildout.hash.cfg
0 → 100644
View file @
b30122ef
[template-drupal-instance]
filename = drupal-instance.cfg.in
md5sum = 93e5694836b85ef82de4e90a07c5127d
software/drupal/drupal-instance.cfg.in
0 → 100644
View file @
b30122ef
[apache-php-configuration]
enable-php8 = !py!True
document-root = ${:default-document-root}/docroot
[drush-bin]
recipe = slapos.cookbook:wrapper
command-line =
${php-bin:wrapper-path} ${directory:www}/vendor/drush/drush/drush
wrapper-path = ${directory:bin}/drush
[drupal-env]
recipe = collective.recipe.template
input = inline:
export DRUPAL_PROFILE=${instance-parameter:site-profile}
export LOCALE=${instance-parameter:site-locale}
export DB_URL=${mariadb-urlparse:url}
export SITE_NAME="${instance-parameter:site-name}"
export SITE_MAIL=${instance-parameter:site-mail}
export ACCOUNT_NAME="${instance-parameter:account-name}"
export ACCOUNT_MAIL=${instance-parameter:account-mail}
export ACCOUNT_PASS=${drupal-admin-passwd:passwd}
export PATH={{ mariadb_location }}/bin:$PATH
output = ${directory:etc}/site.env
mode = 600
[drupal-site-install]
output = ${directory:scripts}/drupal-install
recipe = collective.recipe.template
input = inline:#!/bin/sh
set -e
INSTALL_FILE=${directory:var}/.install-done
if [ -s "$INSTALL_FILE" ]; then
echo "Drupal is installed."
exit 0;
fi
. ${drupal-env:output}
${drush-bin:wrapper-path} site:install $DRUPAL_PROFILE \
--locale=$LOCALE \
--db-url=$DB_URL \
--site-name=$SITE_NAME \
--site-mail=$SITE_MAIL \
--account-name=$ACCOUNT_NAME \
--account-mail=$ACCOUNT_MAIL \
--account-pass=$ACCOUNT_PASS \
--verbose --yes
echo "done" > $INSTALL_FILE
mode = 744
[drupal-admin-passwd]
recipe = slapos.cookbook:generate.password
storage-path = ${directory:etc}/.admin_pwd
[instance-parameter]
site-profile = ${slap-parameter:instance.site-profile}
site-locale = ${slap-parameter:instance.site-locate}
site-name = ${slap-parameter:instance.site-name}
site-mail = ${slap-parameter:instance.site-mail}
account-name = ${slap-parameter:instance.account-name}
account-mail = ${slap-parameter:instance.account-mail}
[slap-parameter]
instance.site-profile = standard
instance.site-locate = fr
instance.site-name = Drupal SlapOS
instance.site-mail = admin@example.com
instance.account-name = admin
instance.account-mail = admin@example.com
software/drupal/software.cfg
0 → 100644
View file @
b30122ef
[buildout]
extends =
../../component/redis/buildout.cfg
../../component/nodejs/buildout.cfg
../../component/python-2.7/buildout.cfg
../../component/pytest/buildout.cfg
../../component/java-jdk/buildout.cfg
../../stack/lamp/buildout.cfg
buildout.hash.cfg
parts +=
composer-setup
install-drupal
[nodejs]
<= nodejs-8.9.4
[apache-php]
<= apache-php8.1
[python-interpreter]
eggs +=
${pytest:eggs}
[drupal-download]
<= template-download-base
url = ${:_profile_base_location_}/${:filename}
[custom-application-deployment]
path = ${template-drupal-instance:output}
part-list = drupal-site-install
db-name = drupal_db
db-user = drupal
#default-frontend = False
[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 to install druplal
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
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 "$@"
output = ${composer:location}/composer
mode = 755
# Download drupal composer
[application]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
repository = https://lab.nexedi.com/alain.takoudjou/drupal-composer.git
branch = master
[install-drupal]
recipe = slapos.recipe.cmmi
path = ${application:location}
configure-command = true
# ${composer-bin:output} config vendor-dir docroot/vendor
make-targets =
make-options =
make-binary =
${composer-bin:output} install
${composer-bin:output} update
environment =
COMPOSER_HOME=@@LOCATION@@
PATH=${apache-php:location}/bin:%(PATH)s
[template-drupal-instance]
recipe = slapos.recipe.template:jinja2
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/instance-drupal.cfg
extensions = jinja2.ext.do
context =
key php_location apache-php:location
key mariadb_location mariadb:location
key nodejs_location nodejs:location
[template]
recipe =
context =
[perl-DBD-mariadb]
recipe =
perl-PATH =
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment