-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
65 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Migration | ||
# Changelog | ||
|
||
## v2.x to v6.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
ARG PHP_VERSION | ||
FROM php:${PHP_VERSION}-cli-buster | ||
FROM php:${PHP_VERSION}-cli-bookworm | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y autoconf pkg-config && \ | ||
pecl channel-update pecl.php.net && \ | ||
pecl install xdebug && \ | ||
RUN <<-EOF | ||
apt-get update | ||
apt-get install -y autoconf pkg-config | ||
pecl channel-update pecl.php.net | ||
pecl install xdebug | ||
docker-php-ext-enable opcache xdebug | ||
EOF | ||
|
||
RUN echo '\ | ||
xdebug.client_host=host.docker.internal\n\ | ||
xdebug.mode=develop\n\ | ||
xdebug.start_with_request=yes\n\ | ||
' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
RUN <<-EOF | ||
cat <<-SHELL >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=develop | ||
xdebug.start_with_request=yes | ||
SHELL | ||
|
||
RUN echo '\ | ||
display_errors=On\n\ | ||
error_reporting=E_ALL\n\ | ||
date.timezone=UTC\n\ | ||
' >> /usr/local/etc/php/conf.d/php.ini | ||
cat <<-SHELL >> /usr/local/etc/php/conf.d/php.ini | ||
display_errors=On | ||
error_reporting=E_ALL | ||
date.timezone=UTC | ||
SHELL | ||
EOF | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
|
||
RUN apt-get update && \ | ||
apt-get install unzip && \ | ||
curl -s https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet && \ | ||
mv composer.phar /usr/local/bin/composer && \ | ||
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"\n' >> /root/.bashrc | ||
RUN <<-EOF | ||
apt-get update | ||
apt-get install unzip | ||
curl -s https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet | ||
mv composer.phar /usr/local/bin/composer | ||
cat <<-SHELL >> /root/.bashrc | ||
export PATH="$HOME/.composer/vendor/bin:$PATH" | ||
SHELL | ||
EOF | ||
|
||
RUN composer global require -n squizlabs/php_codesniffer | ||
RUN composer global require squizlabs/php_codesniffer | ||
|
||
ENV COMPOSER_ROOT_VERSION 6.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters