You are here

deploy.sh in Convert Media Tags to Markup 8

Same filename and directory in other branches
  1. 2.x scripts/deploy.sh
#!/bin/bash
#
# Assuming you have the latest version Docker installed, this script will
# fully create or update your development environment.
#
set -e

echo ''
echo 'About to try to get the latest version of'
echo 'https://hub.docker.com/r/dcycle/drupal/ from the Docker hub. This image'
echo 'is updated automatically every Wednesday with the latest version of'
echo 'Drupal and Drush. If the image has changed since the latest deployment,'
echo 'the environment will be completely rebuilt based on this image.'
docker pull dcycle/drupal:8drush

echo ''
echo '-----'
echo 'About to start persistent (-d) containers based on the images defined'
echo 'in ./Dockerfile and ./docker-compose.yml. We are also telling'
echo 'docker-compose to rebuild the images if they are out of date.'
docker-compose up -d --build

echo ''
echo '-----'
echo 'Running the deploy script on the running containers. This installs'
echo 'Drupal if it is not yet installed.'
docker-compose exec drupal /docker-resources/scripts/deploy-on-container.sh

echo ''
echo '-----'
echo ''
echo 'If all went well you can now access your site at:'
./scripts/uli.sh
echo '-----'
echo ''

File

scripts/deploy.sh
View source
  1. #!/bin/bash
  2. #
  3. # Assuming you have the latest version Docker installed, this script will
  4. # fully create or update your development environment.
  5. #
  6. set -e
  7. echo ''
  8. echo 'About to try to get the latest version of'
  9. echo 'https://hub.docker.com/r/dcycle/drupal/ from the Docker hub. This image'
  10. echo 'is updated automatically every Wednesday with the latest version of'
  11. echo 'Drupal and Drush. If the image has changed since the latest deployment,'
  12. echo 'the environment will be completely rebuilt based on this image.'
  13. docker pull dcycle/drupal:8drush
  14. echo ''
  15. echo '-----'
  16. echo 'About to start persistent (-d) containers based on the images defined'
  17. echo 'in ./Dockerfile and ./docker-compose.yml. We are also telling'
  18. echo 'docker-compose to rebuild the images if they are out of date.'
  19. docker-compose up -d --build
  20. echo ''
  21. echo '-----'
  22. echo 'Running the deploy script on the running containers. This installs'
  23. echo 'Drupal if it is not yet installed.'
  24. docker-compose exec drupal /docker-resources/scripts/deploy-on-container.sh
  25. echo ''
  26. echo '-----'
  27. echo ''
  28. echo 'If all went well you can now access your site at:'
  29. ./scripts/uli.sh
  30. echo '-----'
  31. echo ''