Skip to content

Commit

Permalink
fix composer during build
Browse files Browse the repository at this point in the history
  • Loading branch information
htuscher committed Oct 27, 2020
1 parent 8f981bb commit 40305a2
Show file tree
Hide file tree
Showing 62 changed files with 77 additions and 30 deletions.
1 change: 1 addition & 0 deletions docker/php-official/5.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.1-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.2-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.3-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.4-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/8.0-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php-official/8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ RUN set -x \
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/centos-7-php56/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ RUN set -x \
# && pecl install redis \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Cleanup
&& yum erase -y php-devel gcc \
# Enable php services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/centos-7-php7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ RUN set -x \
&& pecl channel-update pecl.php.net \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
&& pecl install redis \
&& echo "extension=redis.so" > /etc/php.d/redis.ini \
&& yum remove -y ImageMagick-devel php70w-devel gcc make \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN set -x \
&& pecl install imagick \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Cleanup
&& yum erase -y php-devel gcc \
# Enable php services
Expand Down
2 changes: 1 addition & 1 deletion docker/php/centos-7/conf/provision/entrypoint.d/20-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/debian-10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ RUN set -x \
&& pecl channel-update pecl.php.net \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
2 changes: 1 addition & 1 deletion docker/php/debian-10/conf/provision/entrypoint.d/20-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/debian-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ RUN set -x \
&& ln -sf /etc/php5/mods-available/mcrypt.in /etc/php5/fpm/conf.d/20-mcrypt.ini \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
2 changes: 1 addition & 1 deletion docker/php/debian-7/conf/provision/entrypoint.d/20-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/debian-8-php7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ RUN set -x \
php-amqp \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/debian-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ RUN set -x \
&& ln -sf /etc/php5/mods-available/mcrypt.in /etc/php5/fpm/conf.d/20-mcrypt.ini \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
2 changes: 1 addition & 1 deletion docker/php/debian-8/conf/provision/entrypoint.d/20-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/debian-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN set -x \
&& pecl channel-update pecl.php.net \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
2 changes: 1 addition & 1 deletion docker/php/debian-9/conf/provision/entrypoint.d/20-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/ubuntu-12.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ RUN set -x \
&& ln -sf /etc/php5/mods-available/mcrypt.in /etc/php5/fpm/conf.d/20-mcrypt.ini \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/ubuntu-14.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ RUN set -x \
&& ln -sf /etc/php5/mods-available/mcrypt.in /etc/php5/fpm/conf.d/20-mcrypt.ini \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/ubuntu-15.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ RUN set -x \
&& ln -sf /etc/php5/mods-available/mcrypt.in /etc/php5/fpm/conf.d/20-mcrypt.ini \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/ubuntu-15.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ RUN set -x \
&& ln -sf /etc/php5/mods-available/mcrypt.in /etc/php5/fpm/conf.d/20-mcrypt.ini \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/ubuntu-16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN set -x \
&& pecl channel-update pecl.php.net \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/ubuntu-16.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN set -x \
&& pecl channel-update pecl.php.net \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/ubuntu-17.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN set -x \
&& pecl channel-update pecl.php.net \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if [[ -n "${PHP_DISMOD+x}" ]]; then
fi

# Link composer version accordingly
ln -s /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
ln -sf /usr/local/bin/composer${COMPOSER_VERSION:-2} /usr/local/bin/composer
1 change: 1 addition & 0 deletions docker/php/ubuntu-17.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN set -x \
&& pecl channel-update pecl.php.net \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
&& ln -sf /usr/local/bin/composer2 /usr/local/bin/composer \
# Enable php services
&& docker-service enable syslog \
&& docker-service enable cron \
Expand Down

0 comments on commit 40305a2

Please sign in to comment.