Skip to content

Instantly share code, notes, and snippets.

@szeidler
Last active August 8, 2017 16:38
Show Gist options
  • Save szeidler/3dfc67e79551058ae384e5d6d6de949d to your computer and use it in GitHub Desktop.
Save szeidler/3dfc67e79551058ae384e5d6d6de949d to your computer and use it in GitHub Desktop.
Add developer tools to docker4drupal (Drush Pachfile, Registry Rebuild)
#!/bin/bash
# Remove and reinstall drush patchfile.
docker-compose exec --user root php sh -c 'if [ -d "/home/www-data/.drush/drush-patchfile" ]; then rm -rf /home/www-data/.drush/drush-patchfile; fi;'
docker-compose exec --user 82 php sh -c 'git clone https://[email protected]/szeidler/drush-patchfile.git /home/www-data/.drush/drush-patchfile'
# Remove and reinstall registry rebuild.
docker-compose exec --user root php sh -c 'if [ -d "/home/www-data/.drush/registry_rebuild" ]; then rm -rf /home/www-data/.drush/registry_rebuild; fi;'
docker-compose exec --user 82 php drush @none dl registry_rebuild-7.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment