Enable custom modules
This commit is contained in:
parent
d6d5aa0419
commit
4ef1864ecd
2 changed files with 10 additions and 0 deletions
|
|
@ -33,6 +33,9 @@ WORKDIR /var/www/html
|
||||||
# "repositories": [{"type": "path", "url": "../drupal/core", "options": {"symlink": false}}]
|
# "repositories": [{"type": "path", "url": "../drupal/core", "options": {"symlink": false}}]
|
||||||
# then bump drupal/core-recommended to "11.x-dev@dev" and rebuild.
|
# then bump drupal/core-recommended to "11.x-dev@dev" and rebuild.
|
||||||
COPY composer.json ./
|
COPY composer.json ./
|
||||||
|
|
||||||
|
RUN composer config repositories.drupal composer https://packages.drupal.org/8
|
||||||
|
|
||||||
RUN composer install --no-dev --optimize-autoloader --no-interaction
|
RUN composer install --no-dev --optimize-autoloader --no-interaction
|
||||||
|
|
||||||
# Overlay our site-specific files on top of the scaffolded web/
|
# Overlay our site-specific files on top of the scaffolded web/
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,13 @@ else
|
||||||
-y
|
-y
|
||||||
echo "[entrypoint] Drupal installed."
|
echo "[entrypoint] Drupal installed."
|
||||||
|
|
||||||
|
echo "[entrypoint] Enabling modules..."
|
||||||
|
$DRUSH en -y views views_ui field_ui text options link datetime
|
||||||
|
$DRUSH en -y webform webform_ui
|
||||||
|
$DRUSH en -y symfony_mailer
|
||||||
|
echo "[entrypoint] Modules enabled."
|
||||||
|
|
||||||
|
|
||||||
if ls /var/www/html/config/sync/*.yml >/dev/null 2>&1; then
|
if ls /var/www/html/config/sync/*.yml >/dev/null 2>&1; then
|
||||||
echo "[entrypoint] Importing configuration from sync dir..."
|
echo "[entrypoint] Importing configuration from sync dir..."
|
||||||
$DRUSH config:import -y
|
$DRUSH config:import -y
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue