-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ENHANCEMENT] Add `.phpunit.result.cache` to ignore (cherry picked from commit d250471) * [ENHANCEMENT] add docker-compose for easy jump in development (cherry picked from commit d03b46d) * Makefile + Documentation --------- Co-authored-by: Maxim Ageev <maxim.ageev@paxful.com>
- Loading branch information
Showing
7 changed files
with
53 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM php:8.1-cli-alpine | ||
ENV XDG_CACHE_HOME=/tmp/.cache | ||
ENV COMPOSER_CACHE_DIR=${XDG_CACHE_HOME}/composer | ||
# posible could install cache directory here | ||
RUN --mount=type=bind,from=mlocati/php-extension-installer:1.5,source=/usr/bin/install-php-extensions,target=/usr/local/bin/install-php-extensions \ | ||
install-php-extensions zip xdebug-stable | ||
RUN addgroup -S app && adduser -S app -G app | ||
RUN mkdir -p /app && chown -R app /app && mkdir -p /tmp && chown -R app /tmp | ||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer | ||
USER app | ||
WORKDIR /app |
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,4 @@ | ||
[xdebug] | ||
zend_extension="xdebug.so" | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=debug |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ composer.phar | |
*.iml | ||
.idea/ | ||
coverage.xml | ||
.phpunit.result.cache |
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,6 @@ | ||
init: | ||
docker compose run cli composer i | ||
test: | ||
docker compose run cli vendor/bin/phpunit | ||
shell: | ||
docker compose run cli sh |
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,11 @@ | ||
version: "3.9" | ||
services: | ||
cli: | ||
build: | ||
dockerfile: .docker/Dockerfile.local | ||
context: . | ||
working_dir: /app | ||
volumes: | ||
- ./:/app | ||
- ~/.composer/cache/:/tmp/cache/ | ||
- ./.docker/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini:ro |