Docker4Drupal

Установка и настройка.

Файл .bash_aliases

i:docker4drupal - Поднимает последнию версию docker4drupal.
i:drupal-project - Поднимает последнию версию drupal-project.

alias drush="docker-compose exec php drush" alias drupal="docker-compose exec php drupal" alias composer="docker-compose exec php composer" alias i:docker4drupal="wget $(curl -s https://api.github.com/repos/wodby/docker4drupal/releases/latest | grep browser_download_url | cut -d '"' -f 4) tar -xvzf docker4drupal.tar.gz rm docker4drupal.tar.gz docker-compose.override.yml sed -i \"0,/PROJECT_NAME=/s/PROJECT_NAME=.*/PROJECT_NAME=\$(basename \$(pwd))/\" .env sed -i \"0,/PROJECT_BASE_URL=/s/PROJECT_BASE_URL=.*/PROJECT_BASE_URL=\$(basename \$(pwd))/\" .env " alias i:drupal-project="git clone https://github.com/drupal-composer/drupal-project.git some-dir cp -r some-dir/. ./ rm -rf some-dir/ rm -rf .git/ docker-compose up -d composer install mkdir -p config/sync mkdir -p web/modules/custom mkdir -p web/themes/custom "
Теги
Drupal 8.x
Docker4Drupal
Drupal Project