From 1fba9bfee923df42912d6bdbac991b5776cd331b Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Fri, 27 Dec 2024 15:18:45 +0100 Subject: [PATCH 1/2] docker/gitlab-drupal-ci#54 Remove composer downgrade --- run/scripts/start | 1 - setup/scripts/l3d | 1 - start.sh | 6 ------ 3 files changed, 8 deletions(-) diff --git a/run/scripts/start b/run/scripts/start index b6b3720..932657c 100755 --- a/run/scripts/start +++ b/run/scripts/start @@ -62,7 +62,6 @@ function startContainer() { --env HOME=/home/${USERNAME} --env USERNAME=${USERNAME} --env COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME} - --env COMPOSER_DOWNGRADE=${COMPOSER_DOWNGRADE} --env PHP_VERSION=${PHP_VERSION} --volume ${L3DDOCKERHOST}:/var/run/docker.sock --volume ${WORKDIR}:/drupal diff --git a/setup/scripts/l3d b/setup/scripts/l3d index 5beafc9..74f80de 100755 --- a/setup/scripts/l3d +++ b/setup/scripts/l3d @@ -119,7 +119,6 @@ project_params=( --env WORKDIR=${PWD} --env PHP_VERSION=${PHP_VERSION} --env COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME} - --env COMPOSER_DOWNGRADE=${COMPOSER_DOWNGRADE} ) if [[ -n "$SSH_AUTH_SOCK" ]]; then project_params+=( diff --git a/start.sh b/start.sh index fd2c292..b533adc 100755 --- a/start.sh +++ b/start.sh @@ -39,9 +39,6 @@ function restoreEnvFile { if [[ -n ${COMPOSE_PROJECT_NAME} ]]; then echo "COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}" >>.env fi - if [[ -n ${COMPOSER_DOWNGRADE} ]]; then - echo "COMPOSER_DOWNGRADE=${COMPOSER_DOWNGRADE}" >>.env - fi if [[ -f ".env" ]]; then # shellcheck disable=SC2046 # shellcheck disable=SC2094 @@ -254,9 +251,6 @@ if [[ "$INSTALLED_PHP_VERSION" != "$PHP_VERSION" ]]; then docker rm -f ${COMPOSE_PROJECT_NAME}_${USERNAME}_l3d fi fi -if [[ "$COMPOSER_DOWNGRADE" == "1" ]]; then - composer self-update --1 -fi EXISTING=$(ls -1) if [[ -z "$EXISTING" ]]; then if [[ -n ${PROJECT} ]]; then -- GitLab From b719cb1a66af04add6d7c999f6a79b032ecebf5b Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Sun, 5 Jan 2025 11:31:02 +0100 Subject: [PATCH 2/2] Add support for Drupal CMS --- start.sh | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/start.sh b/start.sh index b533adc..8fd1698 100755 --- a/start.sh +++ b/start.sh @@ -122,14 +122,15 @@ function initialSetup { echo "" echo "Options to start:" echo " 0 none: start with an empty container" - echo " 1 LakeDrops Drupal 11 project template" - echo " 2 LakeDrops Drupal 10 project template" - echo " 3 drupal.org recommended project template (Drupal 11)" - echo " 4 drupal.org recommended project template (Drupal 10)" - echo " 5 Drupal's community project template (Drupal 11)" - echo " 6 Drupal's community project template (Drupal 10)" - echo " 7 Custom project template" - echo " 8 Existing git repository" + echo " 1 LakeDrops Drupal CMS" + echo " 2 LakeDrops Drupal 11 project template" + echo " 3 LakeDrops Drupal 10 project template" + echo " 4 drupal.org recommended project template (Drupal 11)" + echo " 5 drupal.org recommended project template (Drupal 10)" + echo " 6 Drupal's community project template (Drupal 11)" + echo " 7 Drupal's community project template (Drupal 10)" + echo " 8 Custom project template" + echo " 9 Existing git repository" echo "" echo "" @@ -144,44 +145,50 @@ function initialSetup { ;; 1 ) + PROJECT="lakedrops/cms:1.0.x-dev" + create + break + ;; + + 2 ) PROJECT="lakedrops/d11-project" SITE_INSTALL_ARGS="--existing-config" create break ;; - 2 ) + 3 ) PROJECT="lakedrops/d10-project" SITE_INSTALL_ARGS="--existing-config" create break ;; - 3 ) + 4 ) PROJECT="drupal/recommended-project:^11" create break ;; - 4 ) + 5 ) PROJECT="drupal/recommended-project:^10" create break ;; - 5 ) + 6 ) PROJECT="drupal-composer/drupal-project:11.x-dev" create break ;; - 6 ) + 7 ) PROJECT="drupal-composer/drupal-project:10.x-dev" create break ;; - 7 ) + 8 ) # shellcheck disable=SC2162 read -p "Custom project template: " PROJECT # shellcheck disable=SC2162 @@ -190,7 +197,7 @@ function initialSetup { break ;; - 8 ) + 9 ) # shellcheck disable=SC2162 read -p "Repository URL: " REPOSITORY if [[ -n "${REPOSITORY}" ]]; then -- GitLab