replace true parameters by false as the default
This commit is contained in:
parent
58d6d8e745
commit
56f422ade0
@ -40,7 +40,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
# xDebug:
|
# xDebug:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_XDEBUG=true
|
ARG INSTALL_XDEBUG=false
|
||||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
# Install the xdebug extension
|
# Install the xdebug extension
|
||||||
pecl install xdebug && \
|
pecl install xdebug && \
|
||||||
@ -54,7 +54,7 @@ COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
|||||||
# MongoDB:
|
# MongoDB:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MONGO=true
|
ARG INSTALL_MONGO=false
|
||||||
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
# Install the mongodb extension
|
# Install the mongodb extension
|
||||||
pecl install mongodb && \
|
pecl install mongodb && \
|
||||||
@ -65,7 +65,7 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
# ZipArchive:
|
# ZipArchive:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_ZIP_ARCHIVE=true
|
ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
# Install the zip extension
|
# Install the zip extension
|
||||||
pecl install zip && \
|
pecl install zip && \
|
||||||
@ -76,7 +76,7 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
|||||||
# PHP Memcached:
|
# PHP Memcached:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MEMCACHED=true
|
ARG INSTALL_MEMCACHED=false
|
||||||
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
||||||
# Install the php memcached extension
|
# Install the php memcached extension
|
||||||
pecl install memcached && \
|
pecl install memcached && \
|
||||||
@ -87,7 +87,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
|||||||
# PHP Aerospike:
|
# PHP Aerospike:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_AEROSPIKE_EXTENSION=true
|
ARG INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
||||||
# Copy aerospike configration for remote debugging
|
# Copy aerospike configration for remote debugging
|
||||||
COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
|
COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
|
||||||
@ -108,7 +108,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
# Opcache:
|
# Opcache:
|
||||||
#####################################
|
#####################################
|
||||||
ARG INSTALL_OPCACHE=true
|
ARG INSTALL_OPCACHE=false
|
||||||
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
||||||
docker-php-ext-install opcache && \
|
docker-php-ext-install opcache && \
|
||||||
docker-php-ext-enable opcache \
|
docker-php-ext-enable opcache \
|
||||||
|
@ -40,7 +40,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
# xDebug:
|
# xDebug:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_XDEBUG=true
|
ARG INSTALL_XDEBUG=false
|
||||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
# Install the xdebug extension
|
# Install the xdebug extension
|
||||||
pecl install xdebug && \
|
pecl install xdebug && \
|
||||||
@ -54,7 +54,7 @@ COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
|||||||
# MongoDB:
|
# MongoDB:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MONGO=true
|
ARG INSTALL_MONGO=false
|
||||||
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
# Install the mongodb extension
|
# Install the mongodb extension
|
||||||
pecl install mongodb && \
|
pecl install mongodb && \
|
||||||
@ -65,7 +65,7 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
# ZipArchive:
|
# ZipArchive:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_ZIP_ARCHIVE=true
|
ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
# Install the zip extension
|
# Install the zip extension
|
||||||
pecl install zip && \
|
pecl install zip && \
|
||||||
@ -76,7 +76,7 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
|||||||
# PHP Memcached:
|
# PHP Memcached:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MEMCACHED=true
|
ARG INSTALL_MEMCACHED=false
|
||||||
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
||||||
# Install the php memcached extension
|
# Install the php memcached extension
|
||||||
curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \
|
curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \
|
||||||
@ -98,7 +98,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
|||||||
# PHP Aerospike:
|
# PHP Aerospike:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_AEROSPIKE_EXTENSION=true
|
ARG INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
||||||
# Copy aerospike configration for remote debugging
|
# Copy aerospike configration for remote debugging
|
||||||
COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
|
COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
|
||||||
@ -119,7 +119,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
# Opcache:
|
# Opcache:
|
||||||
#####################################
|
#####################################
|
||||||
ARG INSTALL_OPCACHE=true
|
ARG INSTALL_OPCACHE=false
|
||||||
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
||||||
docker-php-ext-install opcache && \
|
docker-php-ext-install opcache && \
|
||||||
docker-php-ext-enable opcache \
|
docker-php-ext-enable opcache \
|
||||||
|
@ -45,7 +45,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
# Check if xDebug needs to be installed
|
# Check if xDebug needs to be installed
|
||||||
ARG INSTALL_XDEBUG=true
|
ARG INSTALL_XDEBUG=false
|
||||||
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
|
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
|
||||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
# Load the xdebug extension only with phpunit commands
|
# Load the xdebug extension only with phpunit commands
|
||||||
@ -66,7 +66,7 @@ COPY ./xdebug.ini /etc/php/7.0/cli/conf.d/xdebug.ini
|
|||||||
# See: https://github.com/phusion/baseimage-docker#enabling_ssh
|
# See: https://github.com/phusion/baseimage-docker#enabling_ssh
|
||||||
ADD insecure_id_rsa /tmp/id_rsa
|
ADD insecure_id_rsa /tmp/id_rsa
|
||||||
ADD insecure_id_rsa.pub /tmp/id_rsa.pub
|
ADD insecure_id_rsa.pub /tmp/id_rsa.pub
|
||||||
ARG INSTALL_WORKSPACE_SSH=true
|
ARG INSTALL_WORKSPACE_SSH=false
|
||||||
ENV INSTALL_WORKSPACE_SSH ${INSTALL_WORKSPACE_SSH}
|
ENV INSTALL_WORKSPACE_SSH ${INSTALL_WORKSPACE_SSH}
|
||||||
RUN if [ ${INSTALL_WORKSPACE_SSH} = true ]; then \
|
RUN if [ ${INSTALL_WORKSPACE_SSH} = true ]; then \
|
||||||
rm -f /etc/service/sshd/down && \
|
rm -f /etc/service/sshd/down && \
|
||||||
@ -84,7 +84,7 @@ RUN if [ ${INSTALL_WORKSPACE_SSH} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
# Check if Mongo needs to be installed
|
# Check if Mongo needs to be installed
|
||||||
ARG INSTALL_MONGO=true
|
ARG INSTALL_MONGO=false
|
||||||
ENV INSTALL_MONGO ${INSTALL_MONGO}
|
ENV INSTALL_MONGO ${INSTALL_MONGO}
|
||||||
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
# Install the mongodb extension
|
# Install the mongodb extension
|
||||||
@ -114,7 +114,7 @@ RUN chown -R laradock:laradock /home/laradock/.composer
|
|||||||
USER laradock
|
USER laradock
|
||||||
|
|
||||||
# Check if global install need to be ran
|
# Check if global install need to be ran
|
||||||
ARG COMPOSER_GLOBAL_INSTALL=true
|
ARG COMPOSER_GLOBAL_INSTALL=false
|
||||||
ENV COMPOSER_GLOBAL_INSTALL ${COMPOSER_GLOBAL_INSTALL}
|
ENV COMPOSER_GLOBAL_INSTALL ${COMPOSER_GLOBAL_INSTALL}
|
||||||
RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
|
RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
|
||||||
# run the install
|
# run the install
|
||||||
@ -126,7 +126,7 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
ENV DRUSH_VERSION 8.1.2
|
ENV DRUSH_VERSION 8.1.2
|
||||||
ARG INSTALL_DRUSH=true
|
ARG INSTALL_DRUSH=false
|
||||||
ENV INSTALL_DRUSH ${INSTALL_DRUSH}
|
ENV INSTALL_DRUSH ${INSTALL_DRUSH}
|
||||||
RUN if [ ${INSTALL_DRUSH} = true ]; then \
|
RUN if [ ${INSTALL_DRUSH} = true ]; then \
|
||||||
# Install Drush 8 with the phar file.
|
# Install Drush 8 with the phar file.
|
||||||
@ -144,7 +144,7 @@ USER laradock
|
|||||||
# Check if NVM needs to be installed
|
# Check if NVM needs to be installed
|
||||||
ARG NODE_VERSION=stable
|
ARG NODE_VERSION=stable
|
||||||
ENV NODE_VERSION ${NODE_VERSION}
|
ENV NODE_VERSION ${NODE_VERSION}
|
||||||
ARG INSTALL_NODE=true
|
ARG INSTALL_NODE=false
|
||||||
ENV INSTALL_NODE ${INSTALL_NODE}
|
ENV INSTALL_NODE ${INSTALL_NODE}
|
||||||
ENV NVM_DIR /home/laradock/.nvm
|
ENV NVM_DIR /home/laradock/.nvm
|
||||||
RUN if [ ${INSTALL_NODE} = true ]; then \
|
RUN if [ ${INSTALL_NODE} = true ]; then \
|
||||||
@ -177,7 +177,7 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
|||||||
# PHP Aerospike:
|
# PHP Aerospike:
|
||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
ARG INSTALL_AEROSPIKE_EXTENSION=true
|
ARG INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
||||||
# Copy aerospike configration for remote debugging
|
# Copy aerospike configration for remote debugging
|
||||||
COPY ./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
|
COPY ./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user