{"action":"created","issue":{"url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/597","repository_url":"https://api.github.com/repos/arquillian/arquillian-cube","labels_url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/597/labels{/name}","comments_url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/597/comments","events_url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/597/events","html_url":"https://github.com/arquillian/arquillian-cube/issues/597","id":209671325,"number":597,"title":"Automatic Resolution of Docker elements","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},"labels":[{"id":140318383,"url":"https://api.github.com/repos/arquillian/arquillian-cube/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-02-23T05:57:00Z","updated_at":"2017-02-23T08:05:20Z","closed_at":null,"body":"##### Issue Overview\r\n\r\nAutomatic Resolution of Docker files like `docker-compose` or `Dockerfile`\r\n\r\n##### Expected Behaviour\r\n\r\nIf user *does not* set `dockerContainers` nor `dockerContainersFile/s` then it would be great that Arquillian Cube does next things:\r\n\r\n1) search in `/docker-compose.y(a)ml` if found then it is used\r\n2) if not then search in `/src/test/docker/docker-compose.y(a)ml`\r\n3) if not `/src/test/resources/docker-compose.y(a)ml`\r\n4) if not `/src/test/resources/docker/docker-compose.y(a)ml`\r\n\r\nif it is not present in any of these locations search the same but in `src/main` instead of `src/test`\r\n\r\nIf again there is no `docker-compose` there, just search the same but for `Dockerfile`, and in case of finding it, get the EXPOSE port/s and create dynamically a `dockerContainers` expression building that container\r\n\r\nIf none of this things happens then an exception is thrown.\r\n\r\nIn this way we avoid having to create an `arquillian.xml` file all the time.\r\n"},"comment":{"url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/comments/281922589","html_url":"https://github.com/arquillian/arquillian-cube/issues/597#issuecomment-281922589","issue_url":"https://api.github.com/repos/arquillian/arquillian-cube/issues/597","id":281922589,"user":{"login":"MatousJobanek","id":1510709,"avatar_url":"https://avatars.githubusercontent.com/u/1510709?v=3","gravatar_id":"","url":"https://api.github.com/users/MatousJobanek","html_url":"https://github.com/MatousJobanek","followers_url":"https://api.github.com/users/MatousJobanek/followers","following_url":"https://api.github.com/users/MatousJobanek/following{/other_user}","gists_url":"https://api.github.com/users/MatousJobanek/gists{/gist_id}","starred_url":"https://api.github.com/users/MatousJobanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatousJobanek/subscriptions","organizations_url":"https://api.github.com/users/MatousJobanek/orgs","repos_url":"https://api.github.com/users/MatousJobanek/repos","events_url":"https://api.github.com/users/MatousJobanek/events{/privacy}","received_events_url":"https://api.github.com/users/MatousJobanek/received_events","type":"User","site_admin":false},"created_at":"2017-02-23T08:05:20Z","updated_at":"2017-02-23T08:05:20Z","body":"Well, from my point of view the directory `src/{main,test}/docker` is definitely not the correct place where you should keep our test resources. For this purpose, there is the `resources` directory and I would really avoid creating this new \"dummy\" directory for docker related things and I would keep the convention. In addition, the files are not connected to the java project anyhow - they're just another resource files.\r\n\r\nI would vote for this order:\r\n\r\n1. src/test/resources\r\n2. src/main/resources\r\n3. root project\r\n4. then we could consider some `docker` directory either in `src/{main,test}/` or in the root project"}}
{"actor":{"display_login":"MatousJobanek"}}