Add PHP version checkers on all php-related dockerfiles
This commit is contained in:
parent
a52a944003
commit
76da02e779
@ -329,6 +329,12 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
|||||||
docker-php-ext-enable imagick \
|
docker-php-ext-enable imagick \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Check PHP version:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 5.6."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -353,6 +353,12 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
|||||||
docker-php-ext-enable imagick \
|
docker-php-ext-enable imagick \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Check PHP version:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 7.0."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -360,6 +360,12 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
|||||||
docker-php-ext-enable imagick \
|
docker-php-ext-enable imagick \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Check PHP version:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 7.1."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -360,6 +360,12 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
|||||||
docker-php-ext-enable imagick \
|
docker-php-ext-enable imagick \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Check PHP version:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 7.2."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -56,6 +56,13 @@ ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
|
|||||||
#
|
#
|
||||||
# -- Your awesome modifications go here -- #
|
# -- Your awesome modifications go here -- #
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Check PHP version
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP "7.0."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
@ -56,6 +56,13 @@ ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
|
|||||||
#
|
#
|
||||||
# -- Your awesome modifications go here -- #
|
# -- Your awesome modifications go here -- #
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Check PHP version
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 7.1."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
@ -56,6 +56,13 @@ ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
|
|||||||
#
|
#
|
||||||
# -- Your awesome modifications go here -- #
|
# -- Your awesome modifications go here -- #
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Check PHP version
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 7.2."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
@ -13,7 +13,8 @@ env | sort
|
|||||||
if [ -n "${PHP_VERSION}" ]; then
|
if [ -n "${PHP_VERSION}" ]; then
|
||||||
cp env-example .env
|
cp env-example .env
|
||||||
sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env
|
sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env
|
||||||
sed -i -- 's/=false/=true/g' .env
|
sed -i -- 's/=false/=false/g' .env
|
||||||
|
sed -i -- 's/=true/=false/g' .env
|
||||||
cat .env
|
cat .env
|
||||||
docker-compose build ${BUILD_SERVICE}
|
docker-compose build ${BUILD_SERVICE}
|
||||||
docker images
|
docker images
|
||||||
|
@ -626,6 +626,12 @@ RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
|||||||
&& rm chromedriver_linux64.zip \
|
&& rm chromedriver_linux64.zip \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Check PHP version:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 5.6."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -703,6 +703,12 @@ RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
|||||||
&& rm chromedriver_linux64.zip \
|
&& rm chromedriver_linux64.zip \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Check PHP version:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 7.0."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -713,6 +713,12 @@ RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
|||||||
&& rm chromedriver_linux64.zip \
|
&& rm chromedriver_linux64.zip \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Check PHP version:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 7.1."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -704,6 +704,12 @@ RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
|||||||
&& rm chromedriver_linux64.zip \
|
&& rm chromedriver_linux64.zip \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Check PHP version:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
RUN php -v | head -n 1 | grep -q "PHP 7.2."
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
Loading…
Reference in New Issue
Block a user