Unverified Commit 7d199041 authored by Susanne Moog's avatar Susanne Moog Committed by GitHub
Browse files

[TASK] Update composer automatically + PHP8 RC5 (#4)

parent 0881eb16
......@@ -7,3 +7,6 @@ RUN /pd_build/enable_repos.sh && \
/pd_build/nodejs.sh && \
/pd_build/php.sh && \
/pd_build/finalize.sh
# Install composer latest
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
......@@ -86,7 +86,3 @@ php -i | \
xargs awk 'FNR==1{print ""}1' | \
grep -v '^;' | \
grep -v '^$' > /etc/php/cli-no-xdebug/php.ini
# Install composer
curl -sSL https://getcomposer.org/download/2.0.4/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
......@@ -7,3 +7,6 @@ RUN /pd_build/enable_repos.sh && \
/pd_build/nodejs.sh && \
/pd_build/php.sh && \
/pd_build/finalize.sh
# Install composer latest
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
......@@ -86,7 +86,3 @@ php -i | \
xargs awk 'FNR==1{print ""}1' | \
grep -v '^;' | \
grep -v '^$' > /etc/php/cli-no-xdebug/php.ini
# Install composer
curl -sSL https://getcomposer.org/download/2.0.4/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
......@@ -8,3 +8,5 @@ RUN /pd_build/enable_repos.sh && \
/pd_build/php.sh && \
/pd_build/finalize.sh
# Install composer latest
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
......@@ -87,6 +87,3 @@ php -i | \
grep -v '^;' | \
grep -v '^$' > /etc/php/cli-no-xdebug/php.ini
# Install composer
curl -sSL https://getcomposer.org/download/2.0.4/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
FROM php:8.0.0RC3-alpine
FROM php:8.0.0RC5-alpine
MAINTAINER TYPO3 GmbH <info@typo3.com>
RUN apk add --no-cache \
......@@ -86,17 +86,7 @@ sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ $PHP_INI_DIR/php.ini && \
sed -i s/'memory_limit = 128M'/'memory_limit = 2G'/ $PHP_INI_DIR/php.ini && \
# Enable apc on cli for unit tests
echo "apc.enable_cli=1" >> $PHP_INI_DIR/conf.d/docker-php-ext-apcu.ini && \
echo "apc.slam_defense=0" >> $PHP_INI_DIR/conf.d/docker-php-ext-apcu.ini && \
# @todo Prepare an additional php.ini file that does *NOT* include xdebug -- unavailable due to no xdebug
# can be used with: php -n -c /etc/php/cli-no-xdebug/php.ini
mkdir -p /etc/php/cli-no-xdebug/ && \
php -i | \
grep "\.ini" | \
grep -o -e '\(/[A-Za-z0-9._-]\+\)\+\.ini' | \
grep -v xdebug | \
xargs awk 'FNR==1{print ""}1' | \
grep -v '^;' | \
grep -v '^$' > /etc/php/cli-no-xdebug/php.ini && \
rm -Rf /usr/src/* && \
echo "apc.slam_defense=0" >> $PHP_INI_DIR/conf.d/docker-php-ext-apcu.ini
# No separate config for xdebug. XDebug 3.0 can be adjusted by setting XDEBUG_MODE env var!
# Install composer latest
curl -sSL https://getcomposer.org/download/2.0.4/composer.phar -o /usr/bin/composer && chmod +x /usr/bin/composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment