-
Notifications
You must be signed in to change notification settings - Fork 1.5k
PHPORM-31 Split documentation into multiple files #2610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a couple of minor suggestions.
RUN composer install | ||
|
||
CMD ["./vendor/bin/phpunit", "--testdox"] | ||
CMD ["bash", "-c", "composer install && ./vendor/bin/phpunit --testdox"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, what's the advantage of moving composer install
into CMD
from its separate RUN
? Does it mean that the built image will be without composer dependencies and they will be installed before running tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The working directory is mounted into the container by docker-compose, so dependencies installed the docker image are ignored.
Also, if you ran composer install with PHP 8.2 locally and try to run phpunit in the container with PHP 8.1, it will fail. That's also why I add config.platform.php: 8.1
in composer.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks for explaining!
Fix PHPORM-31
MongoDBServiceProvider