Skip to content
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

Add docker image #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kambo-1st
Copy link
Collaborator

@kambo-1st kambo-1st commented Dec 13, 2020

This can be a subject of controversy as this pull request introduce a docker image which can be used for running unit tests without need to have a mongdb extension installed on local enviroment. After image build unit tests can be run by command:

docker run -e MYSQL_SERVER=mysql -e MYSQL_PORT=3306 -e MONGO_SERVER=mongo -e MONGO_PORT=27017 -v $(pwd):$(pwd) -it -w $(pwd) --network=phpunit-db-fixtures_default phpunittrait vendor/bin/phpunit

What do you think @esler ?

@kambo-1st kambo-1st self-assigned this Dec 13, 2020
@kambo-1st kambo-1st requested a review from esler December 13, 2020 10:16
@esler
Copy link
Contributor

esler commented Dec 17, 2020

Hi @kambo-1st, thanks for the PR.

What's the motivation here? If it's a helper for a users we should provide already build image instead. If is a helper for development then it should be better integrated.

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