-
Notifications
You must be signed in to change notification settings - Fork 3
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
10 changed files
with
57 additions
and
19 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,7 +1,8 @@ | ||
/.gitignore export-ignore | ||
/.gitattributes export-ignore | ||
/phpunit.xml export-ignore | ||
/phpunit.legacy.xml export-ignore | ||
/workenv export-ignore | ||
/tests export-ignore | ||
/.github export-ignore | ||
/phpcs.php export-ignore | ||
/.php-cs-fixer.php 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ jobs: | |
- 8.1 | ||
- 8.2 | ||
- 8.3 | ||
- 8.4 | ||
include: | ||
- phpunit: phpunit.xml | ||
- php: 5.6 | ||
|
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 was deleted.
Oops, something went wrong.
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,18 +1,42 @@ | ||
FROM php:8.3-cli-alpine | ||
FROM php:8.4-cli-alpine | ||
|
||
ARG GITHUB_OAUTH_TOKEN="" | ||
ARG USER_UID="" | ||
ARG USER_GID="" | ||
|
||
# common | ||
# --- | ||
RUN apk add --no-cache $PHPIZE_DEPS && apk add --update --no-cache linux-headers | ||
|
||
RUN pecl install xdebug && docker-php-ext-enable xdebug | ||
RUN rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
COPY 50_xdebug.ini /usr/local/etc/php/conf.d/ | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --2 --install-dir=/usr/bin --filename=composer | ||
ARG GITHUB_OAUTH_TOKEN=false | ||
RUN if [ ${GITHUB_OAUTH_TOKEN} != false ]; then \ | ||
COPY xdebug.ini /usr/local/etc/php/conf.d/zxy-50_xdebug.ini | ||
|
||
# new user | ||
# --- | ||
RUN addgroup -g $USER_GID php-cli \ | ||
&& adduser -u $USER_UID -G php-cli -s /bin/sh -D php-cli | ||
|
||
# login as new user | ||
# --- | ||
USER php-cli | ||
|
||
# env's | ||
# --- | ||
ENV PATH="/home/php-cli/.local/bin:/home/php-cli/.composer/vendor/bin:${PATH}" | ||
|
||
RUN mkdir -p /home/php-cli/.local/bin && \ | ||
curl -sS https://getcomposer.org/installer | \ | ||
/usr/local/bin/php -- --2 --install-dir=/home/php-cli/.local/bin --filename=composer | ||
|
||
# composer | ||
# --- | ||
RUN if [ -n ${GITHUB_OAUTH_TOKEN} ]; then \ | ||
composer config -g github-oauth.github.com ${GITHUB_OAUTH_TOKEN} \ | ||
;fi | ||
RUN export COMPOSER_DISABLE_XDEBUG_WARN=1 | ||
|
||
RUN composer global require friendsofphp/php-cs-fixer "^3.43.1" | ||
# other tools | ||
# --- | ||
RUN composer global require --dev friendsofphp/php-cs-fixer "^3.65.0" | ||
|
||
CMD ["php", "-a"] |
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,2 @@ | ||
xdebug.mode=debug,develop | ||
xdebug.log=/home/php-cli/php-xdebug.log |