Skip to content

Commit 86705ef

Browse files
committed
Test redis against 5.4 and 7.0
1 parent 2b6107d commit 86705ef

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

5.4/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR /var/www/html
77
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev sudo git \
88
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
99
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip \
10-
&& pecl install redis \
10+
&& pecl install redis-2.2.8 \
1111
&& docker-php-ext-enable redis \
1212
&& curl -sS https://getcomposer.org/installer | php \
1313
&& mv composer.phar /usr/local/bin/composer \

7.0/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ VOLUME /var/www/html
55
WORKDIR /var/www/html
66

77
ADD https://github.com/phpredis/phpredis/archive/php7.zip /tmp/php7.zip
8-
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev sudo unzip git \
9-
&& unzip /tmp/php7.zip -d /usr/src/php/ext \
10-
&& mv /usr/src/php/ext/phpredis-php7 /usr/src/php/ext/redis \
8+
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev sudo git \
9+
&& pecl install redis-3.0.0 \
1110
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
1211
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip redis \
1312
&& docker-php-ext-install opcache \
1413
&& curl -sS https://getcomposer.org/installer | php \
1514
&& mv composer.phar /usr/local/bin/composer \
1615
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
17-
&& rm -fr /tmp/php7.zip \
18-
&& apt-get -y purge unzip \
1916
&& rm -rf /var/lib/apt/lists/*
2017

2118
COPY opcache-recommended.ini drupal.ini /usr/local/etc/php/conf.d/

0 commit comments

Comments
 (0)