This repository was archived by the owner on Jan 6, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +24
-7
lines changed Expand file tree Collapse file tree 6 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1- var current_version = '1.3.2 ' ;
2- var new_version = '1.3.3 ' ;
1+ var current_version = '1.3.3 ' ;
2+ var new_version = '1.4.0 ' ;
33
44module . exports = function ( grunt ) {
55 grunt . loadNpmTasks ( 'grunt-replace' ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Generates general purpose [docker-compose.yml](https://docs.docker.com/compose/y
1818 TMP="$(mktemp -d)" \
1919 && git clone https://github.com/dockerizedrupal/drupal-compose.git "${TMP}" \
2020 && cd "${TMP}" \
21- && git checkout 1.3.3 \
21+ && git checkout 1.4.0 \
2222 && sudo cp "${TMP}/drupal-compose.sh" /usr/local/bin/drupal-compose \
2323 && sudo chmod +x /usr/local/bin/drupal-compose \
2424 && cd -
Original file line number Diff line number Diff line change 1- 1.3.3
1+ 1.4.0
Original file line number Diff line number Diff line change 1- VERSION = "1.3.3 "
1+ VERSION = "1.4.0 "
22
33require 'yaml'
44
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- VERSION=" 1.3.3 "
3+ VERSION=" 1.4.0 "
44
55WORKING_DIR=" $( pwd) "
66
@@ -94,6 +94,15 @@ if [ -z "${PHP_56_TAG}" ]; then
9494 echo " drupal-compose: Couldn't retrieve the latest PHP 5.6 image version. Falling back to last known stable version: ${PHP_56_TAG} ."
9595fi
9696
97+ PHP_70_VERSION_FILE_URL=" https://raw.githubusercontent.com/dockerizedrupal/docker-php-7.0/master/VERSION.md"
98+ PHP_70_TAG=" $( wget ${PHP_70_VERSION_FILE_URL} -q -O -) "
99+
100+ if [ -z " ${PHP_70_TAG} " ]; then
101+ PHP_70_TAG=" 1.0.0"
102+
103+ echo " drupal-compose: Couldn't retrieve the latest PHP 7.0 image version. Falling back to last known stable version: ${PHP_70_TAG} ."
104+ fi
105+
97106MYSQL_VERSION_FILE_URL=" https://raw.githubusercontent.com/dockerizedrupal/docker-mysql/master/VERSION.md"
98107MYSQL_TAG=" $( wget ${MYSQL_VERSION_FILE_URL} -q -O -) "
99108
@@ -737,6 +746,13 @@ case "${1}" in
737746
738747 echo " drupal-compose: PHP version changed to 5.6."
739748 ;;
749+ 7.0)
750+ sed -i " s/dockerizedrupal\/php-.*/dockerizedrupal\/php-5.6:${PHP_70_TAG} /g" " ${DRUPAL_ROOT} /${DOCKER_COMPOSE_FILE} "
751+ sed -i " s/dockerizedrupal\/apache.*/dockerizedrupal\/apache-2.4:${APACHE_24_TAG} /g" " ${DRUPAL_ROOT} /${DOCKER_COMPOSE_FILE} "
752+ sed -i " s/dockerizedrupal\/docker-php-.*/dockerizedrupal\/docker-php-5.6\/master\/VERSION.md/g" " ${DRUPAL_ROOT} /${DOCKER_COMPOSE_FILE} "
753+
754+ echo " drupal-compose: PHP version changed to 7.0."
755+ ;;
740756 -h|--help)
741757 cat << EOF
742758Version: ${VERSION}
@@ -749,6 +765,7 @@ Supported versions:
749765 5.4
750766 5.5
751767 5.6
768+ 7.0
752769EOF
753770
754771 exit 1
Original file line number Diff line number Diff line change 11{
22 "name" : " drupal-compose" ,
3- "version" : " 1.3.3 " ,
3+ "version" : " 1.4.0 " ,
44 "repository" : {
55 "type" : " git" ,
66 "url" : " https://github.com/dockerizedrupal/drupal-compose.git"
You can’t perform that action at this time.
0 commit comments