Skip to content

Add docker image#19

Open
kambo-1st wants to merge 1 commit intopeoplepath:mainfrom
kambo-1st:add-docker-image
Open

Add docker image#19
kambo-1st wants to merge 1 commit intopeoplepath:mainfrom
kambo-1st:add-docker-image

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