-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from ebln/php74-liberal
Switch to PHP 7.4
- Loading branch information
Showing
17 changed files
with
677 additions
and
411 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
/*.tar export-ignore | ||
/.gitattributes export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/phpunit.xml* export-ignore | ||
/tests export-ignore | ||
/vendor export-ignore | ||
/.idea export-ignore | ||
/*.tar export-ignore | ||
/mock export-ignore | ||
/coverage export-ignore | ||
/.github export-ignore | ||
/.php-cs-fixer.dist export-ignore | ||
/.php_cs.dist export-ignore | ||
/.provision export-ignore | ||
/.travis.yml export-ignore | ||
/coverage export-ignore | ||
/docs export-ignore | ||
/mock export-ignore | ||
/phpstan.neon export-ignore | ||
/phpunit.xml* export-ignore | ||
/psalm-baseline.xml export-ignore | ||
/psalm.xml export-ignore | ||
/phpstan.neon export-ignore | ||
/tests export-ignore | ||
/vendor export-ignore |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM php:7.4-cli | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y git nano zip unzip zlib1g-dev libzip-dev \ | ||
&& apt-get -y autoremove \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& groupadd --gid 1000 app \ | ||
&& useradd --uid 1000 --gid app --shell /bin/bash --create-home app \ | ||
&& touch /var/log/xdebug.log && chgrp 1000 /var/log/xdebug.log && chmod g+w /var/log/xdebug.log \ | ||
&& sed -i -e '/alias l\|export\|eval/s/#//' /root/.bashrc \ | ||
&& mkdir --parents /var/www/src /var/www/tests \ | ||
&& chown 1000:1000 /var/www/src /var/www/tests \ | ||
&& sed -i -e '/xdebug.remote_autostart/s/1/0/' /usr/local/etc/php/conf.d/30-xdebug.ini \ | ||
&& true | ||
|
||
USER app | ||
|
||
ENV PATH "$PATH:/home/app/.composer/vendor/bin" | ||
|
||
RUN composer global require friendsofphp/php-cs-fixer \ | ||
&& sed -i -e '/alias l\|export\|eval/s/#//' /home/app/.bashrc |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: '3.6' | ||
services: | ||
php: | ||
build: | ||
context: . | ||
volumes: | ||
- ./..:/var/www | ||
extra_hosts: | ||
- "host.docker.internal:${XDEBUG_REMOTE_HOST:-127.0.0.1}" | ||
environment: | ||
PHP_IDE_CONFIG: "serverName=php-cli-74.local" |
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
Oops, something went wrong.