{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/ocitools/issues/54","repository_url":"https://api.github.com/repos/opencontainers/ocitools","labels_url":"https://api.github.com/repos/opencontainers/ocitools/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/ocitools/issues/54/comments","events_url":"https://api.github.com/repos/opencontainers/ocitools/issues/54/events","html_url":"https://github.com/opencontainers/ocitools/pull/54","id":152713831,"number":54,"title":"WIP: translate: Stub in a translation framework","user":{"login":"wking","id":209920,"avatar_url":"https://avatars.githubusercontent.com/u/209920?v=3","gravatar_id":"","url":"https://api.github.com/users/wking","html_url":"https://github.com/wking","followers_url":"https://api.github.com/users/wking/followers","following_url":"https://api.github.com/users/wking/following{/other_user}","gists_url":"https://api.github.com/users/wking/gists{/gist_id}","starred_url":"https://api.github.com/users/wking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wking/subscriptions","organizations_url":"https://api.github.com/users/wking/orgs","repos_url":"https://api.github.com/users/wking/repos","events_url":"https://api.github.com/users/wking/events{/privacy}","received_events_url":"https://api.github.com/users/wking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-03T07:14:10Z","updated_at":"2016-05-07T07:01:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opencontainers/ocitools/pulls/54","html_url":"https://github.com/opencontainers/ocitools/pull/54","diff_url":"https://github.com/opencontainers/ocitools/pull/54.diff","patch_url":"https://github.com/opencontainers/ocitools/pull/54.patch"},"body":"Add tooling to translate higher-level configs into the basic OCI config.  On IRC, @julz floated a [`linux.namespaces[].fromContainer`][1] as a higher-level version of\n`linux.namespaces[].path` for emulating exec (opencontainers/runtime-spec#391).  That makes sense to me, with a [UI like][2]:\n\n    $ ocitools generate --template=high-level-config.json --translate=fromContainer --runtime=runc\n\nThis commit still needs:\n\n* The state JSON lookup and path logic from  opencontainers/runtime-spec#391.\n* A way to convert the `interface{}` to an `rspec.Spec` (the current FIXME raises: `FATA[0000] translated template has an invalid schema`).\n\nI'm comfortable working through the former, but would appreciate pointers on the latter from anyone who is more Go-literate than I.\n\nMore generally, I'm curious to know what folks think of this approach.  I'd rather make those before grinding through the implementation details ;).\n\n[1]: http://ircbot.wl.linuxfoundation.org/eavesdrop/%23opencontainers/%23opencontainers.2016-04-27.log.html#t2016-04-27T20:32:09\n[2]: http://ircbot.wl.linuxfoundation.org/eavesdrop/%23opencontainers/%23opencontainers.2016-04-28.log.html#t2016-04-28T16:09:51"},"comment":{"url":"https://api.github.com/repos/opencontainers/ocitools/issues/comments/217612352","html_url":"https://github.com/opencontainers/ocitools/pull/54#issuecomment-217612352","issue_url":"https://api.github.com/repos/opencontainers/ocitools/issues/54","id":217612352,"user":{"login":"wking","id":209920,"avatar_url":"https://avatars.githubusercontent.com/u/209920?v=3","gravatar_id":"","url":"https://api.github.com/users/wking","html_url":"https://github.com/wking","followers_url":"https://api.github.com/users/wking/followers","following_url":"https://api.github.com/users/wking/following{/other_user}","gists_url":"https://api.github.com/users/wking/gists{/gist_id}","starred_url":"https://api.github.com/users/wking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wking/subscriptions","organizations_url":"https://api.github.com/users/wking/orgs","repos_url":"https://api.github.com/users/wking/repos","events_url":"https://api.github.com/users/wking/events{/privacy}","received_events_url":"https://api.github.com/users/wking/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T07:01:21Z","updated_at":"2016-05-07T07:01:21Z","body":"On Tue, May 03, 2016 at 03:47:16PM -0700, W. Trevor King wrote:\n> * Adjust setupNamespaces to avoid clobbering the template.\n> * Shift user-namespace injection into setupNamespaces to avoid\n>   duplicates.\n\nI've pushed fixes for the namespace-setup issues in #60.  I'll rebase\nthis branch on top of that once it lands.\n"}}