Skip to content

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

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Sep 8, 2023

Fix PHPORM-31

  • Split readme into smaller files to helps the reader.
  • Fix case of MongoDBServiceProvider
  • Add more details in the new upgrade file
  • Update contributing docs and fix the docker config to avoid php version conflicts in docker

Copy link
Member

@alcaeus alcaeus left a 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"]
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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!

@GromNaN GromNaN requested a review from alcaeus September 11, 2023 07:54
@GromNaN GromNaN merged commit b55e5da into mongodb:master Sep 11, 2023
@GromNaN GromNaN deleted the PHPORM-31 branch September 11, 2023 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants