Skip to content

Instantly share code, notes, and snippets.

@rfay
Last active February 27, 2024 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rfay/9affe8e5007596885cb93d8018d4952d to your computer and use it in GitHub Desktop.
Save rfay/9affe8e5007596885cb93d8018d4952d to your computer and use it in GitHub Desktop.
breakcompose.sh demonstrate https://github.com/ddev/ddev/pull/5893
#!/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