You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
398 B

  1. #!/bin/bash
  2. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. . $SCRIPT_DIR/_settings.sh || {
  4. echo "no settings" && exit 1
  5. }
  6. function dot_version() {
  7. sed -r 's/^([[:digit:]])/\1./g' <<< $1
  8. }
  9. for PHP_VERSION in "${PHP_VERSIONS[@]}"; do
  10. PHP_IMAGE=$(dot_version ${PHP_VERSION})
  11. docker pull "dimti/workspace:${PHP_IMAGE}"
  12. docker pull "dimti/php:${PHP_IMAGE}"
  13. done