{"action":"created","issue":{"url":"https://api.github.com/repos/stage1/docker-php/issues/144","labels_url":"https://api.github.com/repos/stage1/docker-php/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/stage1/docker-php/issues/144/comments","events_url":"https://api.github.com/repos/stage1/docker-php/issues/144/events","html_url":"https://github.com/stage1/docker-php/pull/144","id":121649907,"number":144,"title":"[Proposal] docker-compose testing","user":{"login":"schmunk42","id":649031,"avatar_url":"https://avatars.githubusercontent.com/u/649031?v=3","gravatar_id":"","url":"https://api.github.com/users/schmunk42","html_url":"https://github.com/schmunk42","followers_url":"https://api.github.com/users/schmunk42/followers","following_url":"https://api.github.com/users/schmunk42/following{/other_user}","gists_url":"https://api.github.com/users/schmunk42/gists{/gist_id}","starred_url":"https://api.github.com/users/schmunk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmunk42/subscriptions","organizations_url":"https://api.github.com/users/schmunk42/orgs","repos_url":"https://api.github.com/users/schmunk42/repos","events_url":"https://api.github.com/users/schmunk42/events{/privacy}","received_events_url":"https://api.github.com/users/schmunk42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-11T06:48:10Z","updated_at":"2016-01-11T23:31:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stage1/docker-php/pulls/144","html_url":"https://github.com/stage1/docker-php/pull/144","diff_url":"https://github.com/stage1/docker-php/pull/144.diff","patch_url":"https://github.com/stage1/docker-php/pull/144.patch"},"body":"**Note: This PR is not complete yet, it's primarily a code example atm.**\r\n\r\nHow about an improved dockerized testing solution? While creating some PRs I also tried to run the tests, but faced some glitches, such as certificate setup and missing images for testing.\r\n\r\nThe process itself can be improved - for sure. But here's the basic idea: Just run a pre-configured docker container for the tests. \r\nThe image is the [base image](https://github.com/phundament/docker-images/blob/master/phundament/php-one/5.6-7.0/Dockerfile-5.6-fpm) from our PHP app template, but just serves as a PHP cli+composer here - it's also configured to run a PHP app in `/app`.\r\nIt would also be possible to run [Codeception](http://codeception.com) tests with this image.\r\n\r\nBy mounting the `docker.sock` file we can use the docker-client without further configurations.\r\n\r\nFeedback appreciated :)"},"comment":{"url":"https://api.github.com/repos/stage1/docker-php/issues/comments/170731876","html_url":"https://github.com/stage1/docker-php/pull/144#issuecomment-170731876","issue_url":"https://api.github.com/repos/stage1/docker-php/issues/144","id":170731876,"user":{"login":"joelwurtz","id":90466,"avatar_url":"https://avatars.githubusercontent.com/u/90466?v=3","gravatar_id":"","url":"https://api.github.com/users/joelwurtz","html_url":"https://github.com/joelwurtz","followers_url":"https://api.github.com/users/joelwurtz/followers","following_url":"https://api.github.com/users/joelwurtz/following{/other_user}","gists_url":"https://api.github.com/users/joelwurtz/gists{/gist_id}","starred_url":"https://api.github.com/users/joelwurtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelwurtz/subscriptions","organizations_url":"https://api.github.com/users/joelwurtz/orgs","repos_url":"https://api.github.com/users/joelwurtz/repos","events_url":"https://api.github.com/users/joelwurtz/events{/privacy}","received_events_url":"https://api.github.com/users/joelwurtz/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T23:31:35Z","updated_at":"2016-01-11T23:31:35Z","body":"You can use https://hub.docker.com/r/jolicode/php54/ and https://hub.docker.com/r/jolicode/php55/ for this versions of php"}}