{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/1229","labels_url":"https://api.github.com/repos/openshift/origin/issues/1229/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/1229/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/1229/events","html_url":"https://github.com/openshift/origin/pull/1229","id":59937096,"number":1229,"title":"[WIP] Add command line utility to output build dependencies of a specific image repository","user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-05T11:08:51Z","updated_at":"2015-03-09T12:29:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/1229","html_url":"https://github.com/openshift/origin/pull/1229","diff_url":"https://github.com/openshift/origin/pull/1229.diff","patch_url":"https://github.com/openshift/origin/pull/1229.patch"},"body":"cc: @csrwng @smarterclayton @bparees \r\n\r\nOpening this issue to sync with [this](https://trello.com/c/52pEs31Q/510-add-command-line-utility-to-output-build-dependencies-of-a-specific-image-repository) Trello card.\r\n\r\n> Simple json (step one), dot or other easy visualization graph format (step 2). Choose the internal structures so they work for dot. For now, define an internal type you can directly serialize to json. In the future we might version it. Put it under experimental admin.\r\n\r\n@smarterclayton I was thinking of going straight to the dot stuff. There is a library that can make things very easy with creating DOT files: https://godoc.org/code.google.com/p/gographviz\r\nWhat do you think?\r\n\r\nDisclaimer: I haven't used that library but with a look I had on it it looks fine plus I am already familiar with GraphViz and the DOT syntax\r\n\r\n**UPDATE**\r\n\r\nThis is a work in progress and any feedback is welcome:)"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/77844544","html_url":"https://github.com/openshift/origin/pull/1229#issuecomment-77844544","issue_url":"https://api.github.com/repos/openshift/origin/issues/1229","id":77844544,"user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T12:29:38Z","updated_at":"2015-03-09T12:29:38Z","body":"When running `go test` in the buildchain directory I get the following error message:\r\n\r\n```\r\n$ cd pkg/cmd/experimental/buildchain/\r\n$ go test\r\n# github.com/GoogleCloudPlatform/kubernetes/pkg/api/validation\r\n../../../../../../GoogleCloudPlatform/kubernetes/pkg/api/validation/schema.go:129: invalid operation: fieldDetails.DataTypeFields.Items[0] (type *swagger.Item does not support indexing)\r\nFAIL\tgithub.com/kargakis/origin/pkg/cmd/experimental/buildchain [build failed]\r\n```\r\n\r\nIs anybody familair with it? Tests should pass. Here is a slightly edited version of the algorithm (and tests) using strings instead of api.Images: http://play.golang.org/p/qEo_nGt5Ko"}}