Last active
February 27, 2024 02:24
-
-
Save rfay/9affe8e5007596885cb93d8018d4952d to your computer and use it in GitHub Desktop.
breakcompose.sh demonstrate https://github.com/ddev/ddev/pull/5893
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu -o pipefail | |
ddev config --project-type=drupal10 --docroot=web --create-docroot | |
if [ ! -f web/index.php ]; then | |
set -x | |
ddev composer create drupal/recommended-project | |
ddev composer require drush/drush | |
ddev composer config extra.drupal-scaffold.gitignore true | |
ddev composer config --json extra.drupal-scaffold.allowed-packages "[\"lullabot/drainpipe\", \"lullabot/drainpipe-dev\"]" | |
ddev composer require lullabot/drainpipe | |
ddev composer require lullabot/drainpipe-dev --dev | |
ddev drush si -y demo_umami --account-pass=admin | |
set +x | |
fi | |
echo "Generating first cases..." | |
ddev debug compose-config > /tmp/1.ddev.compose.yaml | |
md5sum /tmp/1.ddev.compose.yaml | |
ddev debug compose-config > /tmp/2.ddev.compose.yaml | |
md5sum /tmp/2.ddev.compose.yaml | |
echo "Looping..." | |
I=2 | |
while diff -up /tmp/1.ddev.compose.yaml /tmp/2.ddev.compose.yaml; do | |
ddev debug compose-config > /tmp/2.ddev.compose.yaml | |
echo Try $I.... | |
((I++)) | |
md5sum /tmp/2.ddev.compose.yaml | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment