ricardoamaro / drupal8-docker-app

App Container Drupal 8 in Docker serves as Drupal Trial for Linux/Mac/Windows users and as an Out-of-the-box Development Container
https://github.com/ricardoamaro/drupal8-docker-app
GNU General Public License v3.0
87 stars 51 forks source link

Add a setup script #18

Open kazlauskis opened 4 years ago

kazlauskis commented 4 years ago

It would be fantastic if there was a way to invoke a custom set up script once the drupal installation has finished. We do this to execute some composer/drush commands by mounting a script and manually triggering it but if there was a way to execute it automatically then it would be very useful. Something like this would suffice:

start.sh:

# ...

if [ -f /etc/set_up.sh ]; then
   bash /etc/set_up.sh
fi

tail -f /tmp/supervisord.log