{"action":"created","issue":{"url":"https://api.github.com/repos/learningequality/installers/issues/397","repository_url":"https://api.github.com/repos/learningequality/installers","labels_url":"https://api.github.com/repos/learningequality/installers/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/learningequality/installers/issues/397/comments","events_url":"https://api.github.com/repos/learningequality/installers/issues/397/events","html_url":"https://github.com/learningequality/installers/pull/397","id":154642075,"number":397,"title":"Debian build script for docker","user":{"login":"arceduardvincent","id":4099119,"avatar_url":"https://avatars.githubusercontent.com/u/4099119?v=3","gravatar_id":"","url":"https://api.github.com/users/arceduardvincent","html_url":"https://github.com/arceduardvincent","followers_url":"https://api.github.com/users/arceduardvincent/followers","following_url":"https://api.github.com/users/arceduardvincent/following{/other_user}","gists_url":"https://api.github.com/users/arceduardvincent/gists{/gist_id}","starred_url":"https://api.github.com/users/arceduardvincent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arceduardvincent/subscriptions","organizations_url":"https://api.github.com/users/arceduardvincent/orgs","repos_url":"https://api.github.com/users/arceduardvincent/repos","events_url":"https://api.github.com/users/arceduardvincent/events{/privacy}","received_events_url":"https://api.github.com/users/arceduardvincent/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/learningequality/installers/labels/has%20PR","name":"has PR","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"benjaoming","id":374612,"avatar_url":"https://avatars.githubusercontent.com/u/374612?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaoming","html_url":"https://github.com/benjaoming","followers_url":"https://api.github.com/users/benjaoming/followers","following_url":"https://api.github.com/users/benjaoming/following{/other_user}","gists_url":"https://api.github.com/users/benjaoming/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaoming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaoming/subscriptions","organizations_url":"https://api.github.com/users/benjaoming/orgs","repos_url":"https://api.github.com/users/benjaoming/repos","events_url":"https://api.github.com/users/benjaoming/events{/privacy}","received_events_url":"https://api.github.com/users/benjaoming/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-05-13T06:23:40Z","updated_at":"2016-06-17T22:02:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/learningequality/installers/pulls/397","html_url":"https://github.com/learningequality/installers/pull/397","diff_url":"https://github.com/learningequality/installers/pull/397.diff","patch_url":"https://github.com/learningequality/installers/pull/397.patch"},"body":"## Summary\r\n- Fixes #396\r\n- To create a debian build script that automate the docker image to produce *.deb files.\r\n- Create a signed deb file\r\n- Run the build script in the bamboo server.\r\n\r\n## TODO\r\n\r\n- [x] Check if docker is installed.\r\n- [x] Build the docker image.\r\n- [x] Create a docker build tag.\r\n- [x] Run `docker-entrypoint.sh` script in the docker image.\r\n- [x] Display the newly built deb files in the `~/installers/debian/docker/temp/installers` directory.\r\n- [ ] Update the `README.md`.\r\n\r\n**Building the static sources of the ka-lite repo**\r\n- [x] Building the static sources for develop branch of the ka-lite repo with python setup.py sdist --static and  then extracting to `working_dir`\r\n- [x] Moving the `debian/debian` sources inside the root of the unpacked ka-lite/ sdist.\r\n- [x] Install build requirements `sudo apt-get install equivs gdeb`i + `mk-build-deps --remove --install <controfile>`\r\n- [x] Run `debuild -b -us -uc` at the root of the unpacked `ka-lite/` sdist\r\n- [x] Create a signed deb file.\r\n- [ ] Create a signed deb file.\r\n\r\n**Building the static sources for PPA**\r\n- [x] Create deb files\r\n- [ ] Create a signed deb file.\r\n\r\n## Reviewer guidance\r\nWe are trying to automate the production of the *.deb files and signed it.\r\nHow to use the build script?\r\n- Navigate to the `~/installers/debian/docker`\r\n- Run `./build.sh`\r\n- Once the script is done, you should see some output like this\r\n```\r\nCongratulations! Your newly built installer is at '/Users/arceduardvincent/installers/debian/docker/temp/installers'.\r\nka-lite-bundle_0.16.6-0ubuntu1_all.deb\t      ka-lite_0.16.6-0ubuntu1_all.deb\r\nka-lite-raspberry-pi_0.16.6-0ubuntu1_all.deb\r\nDone!\r\n```\r\n## Screenshots\r\nI install the new built deb file in ubuntu 16.04. See image attach\r\n\r\nka-lite-bundle_0.16.6-0ubuntu1_all.deb size=294mb\r\n![screen shot 2016-05-13 at 5 24 18 pm](https://cloud.githubusercontent.com/assets/4099119/15243697/cf6769fc-192f-11e6-992e-f31ff5f719fb.png)\r\n\r\nka-lite_0.16.6-0ubuntu1_all.deb size=35.7\r\n![screen shot 2016-05-13 at 6 27 49 pm](https://cloud.githubusercontent.com/assets/4099119/15245381/b266c362-1938-11e6-985d-da1a4d212055.png)\r\n"},"comment":{"url":"https://api.github.com/repos/learningequality/installers/issues/comments/226892199","html_url":"https://github.com/learningequality/installers/pull/397#issuecomment-226892199","issue_url":"https://api.github.com/repos/learningequality/installers/issues/397","id":226892199,"user":{"login":"benjaoming","id":374612,"avatar_url":"https://avatars.githubusercontent.com/u/374612?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaoming","html_url":"https://github.com/benjaoming","followers_url":"https://api.github.com/users/benjaoming/followers","following_url":"https://api.github.com/users/benjaoming/following{/other_user}","gists_url":"https://api.github.com/users/benjaoming/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaoming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaoming/subscriptions","organizations_url":"https://api.github.com/users/benjaoming/orgs","repos_url":"https://api.github.com/users/benjaoming/repos","events_url":"https://api.github.com/users/benjaoming/events{/privacy}","received_events_url":"https://api.github.com/users/benjaoming/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T22:02:47Z","updated_at":"2016-06-17T22:02:47Z","body":"@arceduardvincent - am so excited about this, how's it going and do you need any feedback at this point?"}}
{"actor":{"display_login":"benjaoming"}}