{"action":"created","issue":{"url":"https://api.github.com/repos/juju/juju-gui-charm/issues/10","labels_url":"https://api.github.com/repos/juju/juju-gui-charm/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/juju/juju-gui-charm/issues/10/comments","events_url":"https://api.github.com/repos/juju/juju-gui-charm/issues/10/events","html_url":"https://github.com/juju/juju-gui-charm/pull/10","id":120845806,"number":10,"title":"Add make package target","user":{"login":"bac","id":617845,"avatar_url":"https://avatars.githubusercontent.com/u/617845?v=3","gravatar_id":"","url":"https://api.github.com/users/bac","html_url":"https://github.com/bac","followers_url":"https://api.github.com/users/bac/followers","following_url":"https://api.github.com/users/bac/following{/other_user}","gists_url":"https://api.github.com/users/bac/gists{/gist_id}","starred_url":"https://api.github.com/users/bac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bac/subscriptions","organizations_url":"https://api.github.com/users/bac/orgs","repos_url":"https://api.github.com/users/bac/repos","events_url":"https://api.github.com/users/bac/events{/privacy}","received_events_url":"https://api.github.com/users/bac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T19:15:03Z","updated_at":"2015-12-07T19:23:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/juju/juju-gui-charm/pulls/10","html_url":"https://github.com/juju/juju-gui-charm/pull/10","diff_url":"https://github.com/juju/juju-gui-charm/pull/10.diff","patch_url":"https://github.com/juju/juju-gui-charm/pull/10.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/juju/juju-gui-charm/issues/comments/162631190","html_url":"https://github.com/juju/juju-gui-charm/pull/10#issuecomment-162631190","issue_url":"https://api.github.com/repos/juju/juju-gui-charm/issues/10","id":162631190,"user":{"login":"bac","id":617845,"avatar_url":"https://avatars.githubusercontent.com/u/617845?v=3","gravatar_id":"","url":"https://api.github.com/users/bac","html_url":"https://github.com/bac","followers_url":"https://api.github.com/users/bac/followers","following_url":"https://api.github.com/users/bac/following{/other_user}","gists_url":"https://api.github.com/users/bac/gists{/gist_id}","starred_url":"https://api.github.com/users/bac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bac/subscriptions","organizations_url":"https://api.github.com/users/bac/orgs","repos_url":"https://api.github.com/users/bac/repos","events_url":"https://api.github.com/users/bac/events{/privacy}","received_events_url":"https://api.github.com/users/bac/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T19:23:14Z","updated_at":"2015-12-07T19:23:14Z","body":"With the addition of the 'make package' target, the version of the jujugui-charm that we keep in version control no longer has all of the dependencies required by the juju gui and doesn't have the package for the gui.  Instead, running `make package` will fetch the latest repo of juju gui from github and build from the master branch, copying the tarball and all dependencies into place.  Once done, `charm2 upload` can be used and the fat charm will be uploaded with the temporary files (`releases/jujugui-<latest>.bz2` and `jujugui-deps`) uploaded.\r\n\r\nThis approach is a spike to see if it is a better way to manage fat charms. There are fewer duplications across codebases, so that's a good thing.  Publishing a new charm release becomes simply:\r\n```\r\nmake package\r\n<test, test, test>\r\ncharm2 upload . cs:~bac/trusty/jujugui\r\ncharm2 change-perm --add-read=everyone cs:~bac/trusty/jujugui\r\ncharm2 publish cs:~bac/trusty/jujugui\r\n```\r\n\r\nQA:\r\nFirst, set environment variables to talk to jujugui.org so the real charmstore isn't polluted.\r\n`export JUJU_CHARMSTORE=http://api.jujugui.org/charmstore`\r\n\r\n```\r\nmake package\r\nmake deploy\r\n```\r\n\r\nYou can then try uploading and publishing the charm and deploying from jujugui.org."}}