{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/docker-maven-plugin/issues/261","repository_url":"https://api.github.com/repos/spotify/docker-maven-plugin","labels_url":"https://api.github.com/repos/spotify/docker-maven-plugin/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/spotify/docker-maven-plugin/issues/261/comments","events_url":"https://api.github.com/repos/spotify/docker-maven-plugin/issues/261/events","html_url":"https://github.com/spotify/docker-maven-plugin/issues/261","id":170525892,"number":261,"title":"Get 500 error building image from Dockerfile, internally reports \"not a valid repository/tag\"","user":{"login":"davidmichaelkarr","id":5566419,"avatar_url":"https://avatars.githubusercontent.com/u/5566419?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmichaelkarr","html_url":"https://github.com/davidmichaelkarr","followers_url":"https://api.github.com/users/davidmichaelkarr/followers","following_url":"https://api.github.com/users/davidmichaelkarr/following{/other_user}","gists_url":"https://api.github.com/users/davidmichaelkarr/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmichaelkarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmichaelkarr/subscriptions","organizations_url":"https://api.github.com/users/davidmichaelkarr/orgs","repos_url":"https://api.github.com/users/davidmichaelkarr/repos","events_url":"https://api.github.com/users/davidmichaelkarr/events{/privacy}","received_events_url":"https://api.github.com/users/davidmichaelkarr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T21:42:28Z","updated_at":"2016-08-11T16:16:32Z","closed_at":"2016-08-11T16:16:32Z","body":"I have a very simple Dockerfile, along with a very simple POM.  I'm using a private enterprise registry.\r\n\r\nThe Dockerfile (in \"src/docker\") is just the following:\r\n`FROM tomee:8-jdk-7.0.0-webprofile`\r\n(Obviously, more will be added when I work through infrastructure issues.)\r\n\r\nThe POM is just this:\r\n`<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n  <modelVersion>4.0.0</modelVersion>\r\n  <groupId>orderProcessingDashboard</groupId>\r\n  <artifactId>ordersImage</artifactId>\r\n  <version>0.0.1-SNAPSHOT</version>\r\n  <packaging>pom</packaging>\r\n  <build>\r\n    <plugins>\r\n  \t\t<plugin>\r\n  \t\t\t<groupId>com.spotify</groupId>\r\n  \t\t\t<artifactId>docker-maven-plugin</artifactId>\r\n  \t\t\t<configuration>\r\n  \t\t\t\t<registryUrl>http://<host>:5000</registryUrl>\r\n  \t\t\t\t<dockerDirectory>src/docker</dockerDirectory>\r\n  \t\t\t\t<imageName>ordersImage</imageName>\r\n  \t\t\t</configuration>\r\n  \t\t</plugin>\r\n  \t</plugins>\r\n  </build>\r\n</project>`\r\n\r\nWhen I run \"mvn docker:build\", I get this:\r\n\r\n> [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.11:build (default-cli) on project ordersImage: Exception caught: Request error: POST unix://localhost:80/build?t=ordersImage: 500: HTTP 500 Internal Server Error -> [Help 1]\r\n\r\nI then looked at /var/log/messages and found this line:\r\n\r\n> Aug 10 17:36:21 <hostname> dockerd: time=\"2016-08-10T17:36:21.395888585-04:00\" level=error msg=\"Handler for POST /build returned error: Error parsing reference: \\\"ordersImage\\\" is not a valid repository/tag\"\r\n\r\nIt's definitely a problem that the Maven build didn't report the full error message.  I don't know whether that's a problem with docker or the plugin.  The bigger problem is understanding why it thinks the name I'm trying to create the image with is invalid."},"comment":{"url":"https://api.github.com/repos/spotify/docker-maven-plugin/issues/comments/239211218","html_url":"https://github.com/spotify/docker-maven-plugin/issues/261#issuecomment-239211218","issue_url":"https://api.github.com/repos/spotify/docker-maven-plugin/issues/261","id":239211218,"user":{"login":"mattnworb","id":113840,"avatar_url":"https://avatars.githubusercontent.com/u/113840?v=3","gravatar_id":"","url":"https://api.github.com/users/mattnworb","html_url":"https://github.com/mattnworb","followers_url":"https://api.github.com/users/mattnworb/followers","following_url":"https://api.github.com/users/mattnworb/following{/other_user}","gists_url":"https://api.github.com/users/mattnworb/gists{/gist_id}","starred_url":"https://api.github.com/users/mattnworb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattnworb/subscriptions","organizations_url":"https://api.github.com/users/mattnworb/orgs","repos_url":"https://api.github.com/users/mattnworb/repos","events_url":"https://api.github.com/users/mattnworb/events{/privacy}","received_events_url":"https://api.github.com/users/mattnworb/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T16:16:32Z","updated_at":"2016-08-11T16:16:32Z","body":"Hey @davidmichaelkarr thanks for the report. It is an issue within the plugin - I don't think it passes on the response body of the error response from Docker. I believe this is already captured in #119 so I will close this issue."}}
{"actor":{"display_login":"mattnworb"}}