Skip to content
This repository was archived by the owner on Jan 6, 2018. It is now read-only.

Commit 981f57c

Browse files
committed
1 parent 55b069e commit 981f57c

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

44
module.exports = function(grunt) {
55
grunt.loadNpmTasks('grunt-replace');

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 -

VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.3
1+
1.4.0

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.3.3"
1+
VERSION = "1.4.0"
22

33
require 'yaml'
44

drupal-compose.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
VERSION="1.3.3"
3+
VERSION="1.4.0"
44

55
WORKING_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}."
9595
fi
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+
97106
MYSQL_VERSION_FILE_URL="https://raw.githubusercontent.com/dockerizedrupal/docker-mysql/master/VERSION.md"
98107
MYSQL_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
742758
Version: ${VERSION}
@@ -749,6 +765,7 @@ Supported versions:
749765
5.4
750766
5.5
751767
5.6
768+
7.0
752769
EOF
753770

754771
exit 1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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"

0 commit comments

Comments
 (0)