Add install task for Drupal projects

Add an `install` task to Drupal `run` files to install Drupal with
Drush.
This commit is contained in:
Oliver Davies 2023-12-16 17:04:29 +00:00
parent c7fddd8ca4
commit 932c8f4bc7
4 changed files with 20 additions and 0 deletions

View file

@ -74,6 +74,11 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}
# Install Drupal.
function install {
drush site:install -y "${@}"
}
function lint:dockerfile {
docker container run --rm -i \
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile

View file

@ -63,6 +63,11 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}
# Install Drupal.
function install {
drush site:install -y "${@}"
}
function lint:dockerfile {
docker container run --rm -i \
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile

View file

@ -63,6 +63,11 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}
# Install Drupal.
function install {
drush site:install -y "${@}"
}
function lint:dockerfile {
docker container run --rm -i \
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile

View file

@ -68,6 +68,11 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}
# Install Drupal.
function install {
drush site:install -y "${@}"
}
function lint:dockerfile {
docker container run --rm -i \
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile