{"action":"created","issue":{"url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/547","repository_url":"https://api.github.com/repos/arquillian/arquillian-cube","labels_url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/547/comments","events_url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/547/events","html_url":"https://github.com/arquillian/arquillian-cube/issues/547","id":200124779,"number":547,"title":"CubeController.create() does not pull the image if it's not present","user":{"login":"jamesnetherton","id":4721408,"avatar_url":"https://avatars.githubusercontent.com/u/4721408?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesnetherton","html_url":"https://github.com/jamesnetherton","followers_url":"https://api.github.com/users/jamesnetherton/followers","following_url":"https://api.github.com/users/jamesnetherton/following{/other_user}","gists_url":"https://api.github.com/users/jamesnetherton/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesnetherton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesnetherton/subscriptions","organizations_url":"https://api.github.com/users/jamesnetherton/orgs","repos_url":"https://api.github.com/users/jamesnetherton/repos","events_url":"https://api.github.com/users/jamesnetherton/events{/privacy}","received_events_url":"https://api.github.com/users/jamesnetherton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-11T15:33:36Z","updated_at":"2017-01-24T09:52:33Z","closed_at":null,"body":"##### Issue Overview\r\n\r\nWhen attempting to use `CubeController.create()`, if the image is not present then the operation fails.\r\n\r\nMaybe this is the expected (or even desired?) behaviour. But having to manually pre-pull stuff is kinda painful, especially in CI scenario.\r\n\r\n##### Expected Behaviour\r\n\r\n` CubeController.create()` pulls the image if it's not present.\r\n\r\n##### Current Behaviour\r\n\r\nAn exception is thrown:\r\n\r\n```\r\n2017-01-11 15:21:22 WARN  [org.apache.cxf.phase.PhaseInterceptorChain] (main) - Interceptor for {http://localhost:2375/containers/create}WebClient has thrown exception, unwinding now\r\ncom.github.dockerjava.api.exception.NotFoundException: {\"message\":\"No such image: influxdb:1.1\"}\r\n```\r\n\r\n##### Steps To Reproduce\r\n1. Define an image spec like:\r\n\r\n```\r\n<property name=\"autoStartContainers\">[none]</property>\r\n<property name=\"definitionFormat\">CUBE</property>\r\n<property name=\"dockerContainers\">\r\n    InfluxDB:\r\n        image: influxdb:1.1\r\n</property>\r\n```\r\n2. Inject `CubeController` into a test and attempt to create an influxdb container:\r\n\r\n```java\r\npublic class InfluxDBTest {\r\n\r\n    @ArquillianResource\r\n    CubeController cubeController;\r\n\r\n    public static JavaArchive createDeployment() {\r\n        return ShrinkWrap.create(JavaArchive.class, \"influxdb-tests.jar\");\r\n    }\r\n\r\n    @Test\r\n    public void testInfluxDB() throws Exception {\r\n        try {\r\n             cubeController.create(\"InfluxDB\")\r\n             // Do some InfluxDB testing\r\n        } finally {\r\n             cubeController.destroy(\"InfluxDB\")\r\n        }\r\n    }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/comments/274757569","html_url":"https://github.com/arquillian/arquillian-cube/issues/547#issuecomment-274757569","issue_url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/547","id":274757569,"user":{"login":"lordofthejars","id":1517153,"avatar_url":"https://avatars.githubusercontent.com/u/1517153?v=3","gravatar_id":"","url":"https://api.github.com/users/lordofthejars","html_url":"https://github.com/lordofthejars","followers_url":"https://api.github.com/users/lordofthejars/followers","following_url":"https://api.github.com/users/lordofthejars/following{/other_user}","gists_url":"https://api.github.com/users/lordofthejars/gists{/gist_id}","starred_url":"https://api.github.com/users/lordofthejars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordofthejars/subscriptions","organizations_url":"https://api.github.com/users/lordofthejars/orgs","repos_url":"https://api.github.com/users/lordofthejars/repos","events_url":"https://api.github.com/users/lordofthejars/events{/privacy}","received_events_url":"https://api.github.com/users/lordofthejars/received_events","type":"User","site_admin":false},"created_at":"2017-01-24T09:52:33Z","updated_at":"2017-01-24T09:52:33Z","body":"The strange thing is that after reviewing the code it seems it should work @jamesnetherton can you share the project so it can be debugged? "}}
{"actor":{"display_login":"lordofthejars"}}