{"action":"created","comment":{"url":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/comments/65814517","id":65814517,"diff_hunk":"@@ -194,4 +226,43 @@ public String getServiceHost(String serviceName, Integer servicePort) {\n     public Integer getServicePort(String serviceName, Integer servicePort) {\n         return ambassadorContainers.get(serviceName + \":\" + servicePort).getMappedPort(servicePort);\n     }\n+\n+    public SELF withScaledService(String serviceBaseName, int numInstances) {\n+        scalingPreferences.put(serviceBaseName, numInstances);\n+\n+        return (SELF) this;\n+    }\n }\n+\n+class DockerCompose extends GenericContainer<DockerCompose> {","path":"core/src/main/java/org/testcontainers/containers/DockerComposeContainer.java","position":232,"original_position":232,"commit_id":"9b760a158b5949d80b3714929884595e0884c89e","original_commit_id":"9b760a158b5949d80b3714929884595e0884c89e","user":{"login":"rnorth","id":132175,"avatar_url":"https://avatars.githubusercontent.com/u/132175?v=3","gravatar_id":"","url":"https://api.github.com/users/rnorth","html_url":"https://github.com/rnorth","followers_url":"https://api.github.com/users/rnorth/followers","following_url":"https://api.github.com/users/rnorth/following{/other_user}","gists_url":"https://api.github.com/users/rnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/rnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnorth/subscriptions","organizations_url":"https://api.github.com/users/rnorth/orgs","repos_url":"https://api.github.com/users/rnorth/repos","events_url":"https://api.github.com/users/rnorth/events{/privacy}","received_events_url":"https://api.github.com/users/rnorth/received_events","type":"User","site_admin":false},"body":"This is the actual container implementation. Arguably this should now be named `DockerComposeContainer` and the `@Rule` implementation should not; I've done it this way for backward compatibility...","created_at":"2016-06-05T09:42:07Z","updated_at":"2016-06-05T09:42:07Z","html_url":"https://github.com/testcontainers/testcontainers-java/pull/156#discussion_r65814517","pull_request_url":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/156","_links":{"self":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/comments/65814517"},"html":{"href":"https://github.com/testcontainers/testcontainers-java/pull/156#discussion_r65814517"},"pull_request":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/156","id":72621783,"html_url":"https://github.com/testcontainers/testcontainers-java/pull/156","diff_url":"https://github.com/testcontainers/testcontainers-java/pull/156.diff","patch_url":"https://github.com/testcontainers/testcontainers-java/pull/156.patch","issue_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/156","number":156,"state":"open","locked":false,"title":"[WIP] Docker compose refactor","user":{"login":"rnorth","id":132175,"avatar_url":"https://avatars.githubusercontent.com/u/132175?v=3","gravatar_id":"","url":"https://api.github.com/users/rnorth","html_url":"https://github.com/rnorth","followers_url":"https://api.github.com/users/rnorth/followers","following_url":"https://api.github.com/users/rnorth/following{/other_user}","gists_url":"https://api.github.com/users/rnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/rnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnorth/subscriptions","organizations_url":"https://api.github.com/users/rnorth/orgs","repos_url":"https://api.github.com/users/rnorth/repos","events_url":"https://api.github.com/users/rnorth/events{/privacy}","received_events_url":"https://api.github.com/users/rnorth/received_events","type":"User","site_admin":false},"body":"Refactoring (incomplete) of `DockerComposeContainer` to more cleanly use multiple invocations of `docker-compose` during the test lifecycle. `DockerComposeContainer` is now no longer a container itself; it's merely a JUnit rule that creates and runs a `docker-compose` container as necessary.\r\n\r\nI suspect this may break things if people are (for example) mapping volumes or injecting env vars into their compose container, so it'd be good to understand these kind of use cases and work to support them.","created_at":"2016-06-05T06:16:29Z","updated_at":"2016-06-05T09:42:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/156/commits","review_comments_url":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/156/comments","review_comment_url":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/156/comments","statuses_url":"https://api.github.com/repos/testcontainers/testcontainers-java/statuses/9b760a158b5949d80b3714929884595e0884c89e","head":{"label":"testcontainers:docker-compose-refactor","ref":"docker-compose-refactor","sha":"9b760a158b5949d80b3714929884595e0884c89e","user":{"login":"testcontainers","id":13393021,"avatar_url":"https://avatars.githubusercontent.com/u/13393021?v=3","gravatar_id":"","url":"https://api.github.com/users/testcontainers","html_url":"https://github.com/testcontainers","followers_url":"https://api.github.com/users/testcontainers/followers","following_url":"https://api.github.com/users/testcontainers/following{/other_user}","gists_url":"https://api.github.com/users/testcontainers/gists{/gist_id}","starred_url":"https://api.github.com/users/testcontainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testcontainers/subscriptions","organizations_url":"https://api.github.com/users/testcontainers/orgs","repos_url":"https://api.github.com/users/testcontainers/repos","events_url":"https://api.github.com/users/testcontainers/events{/privacy}","received_events_url":"https://api.github.com/users/testcontainers/received_events","type":"Organization","site_admin":false},"repo":{"id":33816473,"name":"testcontainers-java","full_name":"testcontainers/testcontainers-java","owner":{"login":"testcontainers","id":13393021,"avatar_url":"https://avatars.githubusercontent.com/u/13393021?v=3","gravatar_id":"","url":"https://api.github.com/users/testcontainers","html_url":"https://github.com/testcontainers","followers_url":"https://api.github.com/users/testcontainers/followers","following_url":"https://api.github.com/users/testcontainers/following{/other_user}","gists_url":"https://api.github.com/users/testcontainers/gists{/gist_id}","starred_url":"https://api.github.com/users/testcontainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testcontainers/subscriptions","organizations_url":"https://api.github.com/users/testcontainers/orgs","repos_url":"https://api.github.com/users/testcontainers/repos","events_url":"https://api.github.com/users/testcontainers/events{/privacy}","received_events_url":"https://api.github.com/users/testcontainers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/testcontainers/testcontainers-java","description":"TestContainers is a Java 8 library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.","fork":false,"url":"https://api.github.com/repos/testcontainers/testcontainers-java","forks_url":"https://api.github.com/repos/testcontainers/testcontainers-java/forks","keys_url":"https://api.github.com/repos/testcontainers/testcontainers-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/testcontainers/testcontainers-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/testcontainers/testcontainers-java/teams","hooks_url":"https://api.github.com/repos/testcontainers/testcontainers-java/hooks","issue_events_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/events{/number}","events_url":"https://api.github.com/repos/testcontainers/testcontainers-java/events","assignees_url":"https://api.github.com/repos/testcontainers/testcontainers-java/assignees{/user}","branches_url":"https://api.github.com/repos/testcontainers/testcontainers-java/branches{/branch}","tags_url":"https://api.github.com/repos/testcontainers/testcontainers-java/tags","blobs_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/testcontainers/testcontainers-java/statuses/{sha}","languages_url":"https://api.github.com/repos/testcontainers/testcontainers-java/languages","stargazers_url":"https://api.github.com/repos/testcontainers/testcontainers-java/stargazers","contributors_url":"https://api.github.com/repos/testcontainers/testcontainers-java/contributors","subscribers_url":"https://api.github.com/repos/testcontainers/testcontainers-java/subscribers","subscription_url":"https://api.github.com/repos/testcontainers/testcontainers-java/subscription","commits_url":"https://api.github.com/repos/testcontainers/testcontainers-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/testcontainers/testcontainers-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/testcontainers/testcontainers-java/contents/{+path}","compare_url":"https://api.github.com/repos/testcontainers/testcontainers-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/testcontainers/testcontainers-java/merges","archive_url":"https://api.github.com/repos/testcontainers/testcontainers-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/testcontainers/testcontainers-java/downloads","issues_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues{/number}","pulls_url":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls{/number}","milestones_url":"https://api.github.com/repos/testcontainers/testcontainers-java/milestones{/number}","notifications_url":"https://api.github.com/repos/testcontainers/testcontainers-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/testcontainers/testcontainers-java/labels{/name}","releases_url":"https://api.github.com/repos/testcontainers/testcontainers-java/releases{/id}","deployments_url":"https://api.github.com/repos/testcontainers/testcontainers-java/deployments","created_at":"2015-04-12T12:44:59Z","updated_at":"2016-05-31T13:53:33Z","pushed_at":"2016-06-05T06:16:29Z","git_url":"git://github.com/testcontainers/testcontainers-java.git","ssh_url":"git@github.com:testcontainers/testcontainers-java.git","clone_url":"https://github.com/testcontainers/testcontainers-java.git","svn_url":"https://github.com/testcontainers/testcontainers-java","homepage":"","size":3464,"stargazers_count":123,"watchers_count":123,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":28,"forks":29,"open_issues":28,"watchers":123,"default_branch":"master"}},"base":{"label":"testcontainers:master","ref":"master","sha":"75d09d4c9bc8cf91bdb87f2983b672cb580ccd3f","user":{"login":"testcontainers","id":13393021,"avatar_url":"https://avatars.githubusercontent.com/u/13393021?v=3","gravatar_id":"","url":"https://api.github.com/users/testcontainers","html_url":"https://github.com/testcontainers","followers_url":"https://api.github.com/users/testcontainers/followers","following_url":"https://api.github.com/users/testcontainers/following{/other_user}","gists_url":"https://api.github.com/users/testcontainers/gists{/gist_id}","starred_url":"https://api.github.com/users/testcontainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testcontainers/subscriptions","organizations_url":"https://api.github.com/users/testcontainers/orgs","repos_url":"https://api.github.com/users/testcontainers/repos","events_url":"https://api.github.com/users/testcontainers/events{/privacy}","received_events_url":"https://api.github.com/users/testcontainers/received_events","type":"Organization","site_admin":false},"repo":{"id":33816473,"name":"testcontainers-java","full_name":"testcontainers/testcontainers-java","owner":{"login":"testcontainers","id":13393021,"avatar_url":"https://avatars.githubusercontent.com/u/13393021?v=3","gravatar_id":"","url":"https://api.github.com/users/testcontainers","html_url":"https://github.com/testcontainers","followers_url":"https://api.github.com/users/testcontainers/followers","following_url":"https://api.github.com/users/testcontainers/following{/other_user}","gists_url":"https://api.github.com/users/testcontainers/gists{/gist_id}","starred_url":"https://api.github.com/users/testcontainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testcontainers/subscriptions","organizations_url":"https://api.github.com/users/testcontainers/orgs","repos_url":"https://api.github.com/users/testcontainers/repos","events_url":"https://api.github.com/users/testcontainers/events{/privacy}","received_events_url":"https://api.github.com/users/testcontainers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/testcontainers/testcontainers-java","description":"TestContainers is a Java 8 library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.","fork":false,"url":"https://api.github.com/repos/testcontainers/testcontainers-java","forks_url":"https://api.github.com/repos/testcontainers/testcontainers-java/forks","keys_url":"https://api.github.com/repos/testcontainers/testcontainers-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/testcontainers/testcontainers-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/testcontainers/testcontainers-java/teams","hooks_url":"https://api.github.com/repos/testcontainers/testcontainers-java/hooks","issue_events_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/events{/number}","events_url":"https://api.github.com/repos/testcontainers/testcontainers-java/events","assignees_url":"https://api.github.com/repos/testcontainers/testcontainers-java/assignees{/user}","branches_url":"https://api.github.com/repos/testcontainers/testcontainers-java/branches{/branch}","tags_url":"https://api.github.com/repos/testcontainers/testcontainers-java/tags","blobs_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/testcontainers/testcontainers-java/statuses/{sha}","languages_url":"https://api.github.com/repos/testcontainers/testcontainers-java/languages","stargazers_url":"https://api.github.com/repos/testcontainers/testcontainers-java/stargazers","contributors_url":"https://api.github.com/repos/testcontainers/testcontainers-java/contributors","subscribers_url":"https://api.github.com/repos/testcontainers/testcontainers-java/subscribers","subscription_url":"https://api.github.com/repos/testcontainers/testcontainers-java/subscription","commits_url":"https://api.github.com/repos/testcontainers/testcontainers-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/testcontainers/testcontainers-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/testcontainers/testcontainers-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/testcontainers/testcontainers-java/contents/{+path}","compare_url":"https://api.github.com/repos/testcontainers/testcontainers-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/testcontainers/testcontainers-java/merges","archive_url":"https://api.github.com/repos/testcontainers/testcontainers-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/testcontainers/testcontainers-java/downloads","issues_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues{/number}","pulls_url":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls{/number}","milestones_url":"https://api.github.com/repos/testcontainers/testcontainers-java/milestones{/number}","notifications_url":"https://api.github.com/repos/testcontainers/testcontainers-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/testcontainers/testcontainers-java/labels{/name}","releases_url":"https://api.github.com/repos/testcontainers/testcontainers-java/releases{/id}","deployments_url":"https://api.github.com/repos/testcontainers/testcontainers-java/deployments","created_at":"2015-04-12T12:44:59Z","updated_at":"2016-05-31T13:53:33Z","pushed_at":"2016-06-05T06:16:29Z","git_url":"git://github.com/testcontainers/testcontainers-java.git","ssh_url":"git@github.com:testcontainers/testcontainers-java.git","clone_url":"https://github.com/testcontainers/testcontainers-java.git","svn_url":"https://github.com/testcontainers/testcontainers-java","homepage":"","size":3464,"stargazers_count":123,"watchers_count":123,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":28,"forks":29,"open_issues":28,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/156"},"html":{"href":"https://github.com/testcontainers/testcontainers-java/pull/156"},"issue":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/156"},"comments":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/testcontainers/testcontainers-java/statuses/9b760a158b5949d80b3714929884595e0884c89e"}}}}
{"actor":{"display_login":"rnorth"}}