{"action":"created","comment":{"url":"https://api.github.com/repos/AdRoll/hologram/pulls/comments/27240410","id":27240410,"diff_hunk":"@@ -0,0 +1,41 @@\n+#!/bin/bash\n+\n+export GIT_TAG=$(git describe --tags --long | sed 's/-/\\./' | sed 's/-g/-/' | sed 's/-/~/')\n+\n+if [ \"$1\" != \"--no-compile\" ]; then\n+    compile_hologram.sh || exit 1\n+fi\n+\n+mkdir -p /hologram-build/{server,agent}/root/usr/local/bin\n+mkdir -p /hologram-build/{server,agent}/root/etc/hologram\n+mkdir -p /hologram-build/{server,agent}/scripts/\n+mkdir -p /hologram-build/{server,agent}/root/etc/init.d/\n+\n+cp ${HOLOGRAM_DIR}/config/agent.json /hologram-build/agent/root/etc/hologram/agent.json\n+cp ${BIN_DIR}/hologram-cli /hologram-build/agent/root/usr/local/bin/\n+cp ${BIN_DIR}/hologram-agent /hologram-build/agent/root/usr/local/bin/\n+cp ${BIN_DIR}/hologram-authorize /hologram-build/agent/root/usr/local/bin/\n+\n+cp ${HOLOGRAM_DIR}/agent/support/debian/after-install.sh /hologram-build/agent/scripts/\n+cp ${HOLOGRAM_DIR}/agent/support/debian/before-remove.sh /hologram-build/agent/scripts/\n+cp ${HOLOGRAM_DIR}/agent/support/debian/init.sh /hologram-build/agent/root/etc/init.d/hologram-agent\n+\n+cp ${HOLOGRAM_DIR}/config/server.json /hologram-build/server/root/etc/hologram/server.json\n+\n+cp ${BIN_DIR}/hologram-cli /hologram-build/server/root/usr/local/bin/\n+cp ${BIN_DIR}/hologram-server /hologram-build/server/root/usr/local/bin/\n+cp ${BIN_DIR}/hologram-authorize /hologram-build/server/root/usr/local/bin/\n+\n+cp ${HOLOGRAM_DIR}/server/after-install.sh /hologram-build/server/scripts/\n+cp ${HOLOGRAM_DIR}/server/before-remove.sh /hologram-build/server/scripts/\n+\n+cp ${HOLOGRAM_DIR}/server/support/hologram.init.sh /hologram-build/server/root/etc/init.d/hologram-server","path":"buildscripts/build_deb_pkgs.sh","position":32,"original_position":32,"commit_id":"9a7f1423cd85c88cb666c8fba28af61276b7e7fd","original_commit_id":"fe81279e252a4dcd268a0afeb328f3191dfe8a45","user":{"login":"zylad","id":956599,"avatar_url":"https://avatars.githubusercontent.com/u/956599?v=3","gravatar_id":"","url":"https://api.github.com/users/zylad","html_url":"https://github.com/zylad","followers_url":"https://api.github.com/users/zylad/followers","following_url":"https://api.github.com/users/zylad/following{/other_user}","gists_url":"https://api.github.com/users/zylad/gists{/gist_id}","starred_url":"https://api.github.com/users/zylad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zylad/subscriptions","organizations_url":"https://api.github.com/users/zylad/orgs","repos_url":"https://api.github.com/users/zylad/repos","events_url":"https://api.github.com/users/zylad/events{/privacy}","received_events_url":"https://api.github.com/users/zylad/received_events","type":"User","site_admin":false},"body":"Instead of doing `cp' maybe it's worth using install(1)? With install you can set the permissions of copied files, so you kinda have more control on it, so you could end up with something like: `install -v -m0755 ${BIN_DIR}/hologram-cli /hologram-build/server/root/usr/local/bin/'","created_at":"2015-03-26T18:14:47Z","updated_at":"2015-03-26T18:14:47Z","html_url":"https://github.com/AdRoll/hologram/pull/27#discussion_r27240410","pull_request_url":"https://api.github.com/repos/AdRoll/hologram/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/AdRoll/hologram/pulls/comments/27240410"},"html":{"href":"https://github.com/AdRoll/hologram/pull/27#discussion_r27240410"},"pull_request":{"href":"https://api.github.com/repos/AdRoll/hologram/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/AdRoll/hologram/pulls/27","id":32039517,"html_url":"https://github.com/AdRoll/hologram/pull/27","diff_url":"https://github.com/AdRoll/hologram/pull/27.diff","patch_url":"https://github.com/AdRoll/hologram/pull/27.patch","issue_url":"https://api.github.com/repos/AdRoll/hologram/issues/27","number":27,"state":"open","locked":false,"title":"New build process","user":{"login":"frangarciam","id":10716661,"avatar_url":"https://avatars.githubusercontent.com/u/10716661?v=3","gravatar_id":"","url":"https://api.github.com/users/frangarciam","html_url":"https://github.com/frangarciam","followers_url":"https://api.github.com/users/frangarciam/followers","following_url":"https://api.github.com/users/frangarciam/following{/other_user}","gists_url":"https://api.github.com/users/frangarciam/gists{/gist_id}","starred_url":"https://api.github.com/users/frangarciam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frangarciam/subscriptions","organizations_url":"https://api.github.com/users/frangarciam/orgs","repos_url":"https://api.github.com/users/frangarciam/repos","events_url":"https://api.github.com/users/frangarciam/events{/privacy}","received_events_url":"https://api.github.com/users/frangarciam/received_events","type":"User","site_admin":false},"body":"Switch from a Makefile to a docker-based build environment. We no longer need a mac to build hologram, and can use docker to cross-compile for both osx and linux.\r\n\r\nContainer also includes (almost) everything needed to develop hologram, so you just need to do \"./hologram.sh console\" from a repo containing hologram, and you can compile/test hologram without even needing to have go installed.\r\n\r\nFixes https://github.com/AdRoll/hologram/issues/23","created_at":"2015-03-26T17:14:27Z","updated_at":"2015-03-26T18:14:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1007654f738108bf08576f6dfd180217d09d492a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AdRoll/hologram/pulls/27/commits","review_comments_url":"https://api.github.com/repos/AdRoll/hologram/pulls/27/comments","review_comment_url":"https://api.github.com/repos/AdRoll/hologram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AdRoll/hologram/issues/27/comments","statuses_url":"https://api.github.com/repos/AdRoll/hologram/statuses/9a7f1423cd85c88cb666c8fba28af61276b7e7fd","head":{"label":"AdRoll:new_build_process","ref":"new_build_process","sha":"9a7f1423cd85c88cb666c8fba28af61276b7e7fd","user":{"login":"AdRoll","id":4723070,"avatar_url":"https://avatars.githubusercontent.com/u/4723070?v=3","gravatar_id":"","url":"https://api.github.com/users/AdRoll","html_url":"https://github.com/AdRoll","followers_url":"https://api.github.com/users/AdRoll/followers","following_url":"https://api.github.com/users/AdRoll/following{/other_user}","gists_url":"https://api.github.com/users/AdRoll/gists{/gist_id}","starred_url":"https://api.github.com/users/AdRoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdRoll/subscriptions","organizations_url":"https://api.github.com/users/AdRoll/orgs","repos_url":"https://api.github.com/users/AdRoll/repos","events_url":"https://api.github.com/users/AdRoll/events{/privacy}","received_events_url":"https://api.github.com/users/AdRoll/received_events","type":"Organization","site_admin":false},"repo":{"id":28053761,"name":"hologram","full_name":"AdRoll/hologram","owner":{"login":"AdRoll","id":4723070,"avatar_url":"https://avatars.githubusercontent.com/u/4723070?v=3","gravatar_id":"","url":"https://api.github.com/users/AdRoll","html_url":"https://github.com/AdRoll","followers_url":"https://api.github.com/users/AdRoll/followers","following_url":"https://api.github.com/users/AdRoll/following{/other_user}","gists_url":"https://api.github.com/users/AdRoll/gists{/gist_id}","starred_url":"https://api.github.com/users/AdRoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdRoll/subscriptions","organizations_url":"https://api.github.com/users/AdRoll/orgs","repos_url":"https://api.github.com/users/AdRoll/repos","events_url":"https://api.github.com/users/AdRoll/events{/privacy}","received_events_url":"https://api.github.com/users/AdRoll/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AdRoll/hologram","description":"Easy, painless AWS credentials on developer laptops.","fork":false,"url":"https://api.github.com/repos/AdRoll/hologram","forks_url":"https://api.github.com/repos/AdRoll/hologram/forks","keys_url":"https://api.github.com/repos/AdRoll/hologram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdRoll/hologram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdRoll/hologram/teams","hooks_url":"https://api.github.com/repos/AdRoll/hologram/hooks","issue_events_url":"https://api.github.com/repos/AdRoll/hologram/issues/events{/number}","events_url":"https://api.github.com/repos/AdRoll/hologram/events","assignees_url":"https://api.github.com/repos/AdRoll/hologram/assignees{/user}","branches_url":"https://api.github.com/repos/AdRoll/hologram/branches{/branch}","tags_url":"https://api.github.com/repos/AdRoll/hologram/tags","blobs_url":"https://api.github.com/repos/AdRoll/hologram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdRoll/hologram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdRoll/hologram/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdRoll/hologram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdRoll/hologram/statuses/{sha}","languages_url":"https://api.github.com/repos/AdRoll/hologram/languages","stargazers_url":"https://api.github.com/repos/AdRoll/hologram/stargazers","contributors_url":"https://api.github.com/repos/AdRoll/hologram/contributors","subscribers_url":"https://api.github.com/repos/AdRoll/hologram/subscribers","subscription_url":"https://api.github.com/repos/AdRoll/hologram/subscription","commits_url":"https://api.github.com/repos/AdRoll/hologram/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdRoll/hologram/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdRoll/hologram/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdRoll/hologram/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdRoll/hologram/contents/{+path}","compare_url":"https://api.github.com/repos/AdRoll/hologram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdRoll/hologram/merges","archive_url":"https://api.github.com/repos/AdRoll/hologram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdRoll/hologram/downloads","issues_url":"https://api.github.com/repos/AdRoll/hologram/issues{/number}","pulls_url":"https://api.github.com/repos/AdRoll/hologram/pulls{/number}","milestones_url":"https://api.github.com/repos/AdRoll/hologram/milestones{/number}","notifications_url":"https://api.github.com/repos/AdRoll/hologram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdRoll/hologram/labels{/name}","releases_url":"https://api.github.com/repos/AdRoll/hologram/releases{/id}","created_at":"2014-12-15T20:03:59Z","updated_at":"2015-03-25T22:54:40Z","pushed_at":"2015-03-26T18:04:37Z","git_url":"git://github.com/AdRoll/hologram.git","ssh_url":"git@github.com:AdRoll/hologram.git","clone_url":"https://github.com/AdRoll/hologram.git","svn_url":"https://github.com/AdRoll/hologram","homepage":"","size":548,"stargazers_count":249,"watchers_count":249,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":10,"forks":8,"open_issues":10,"watchers":249,"default_branch":"master"}},"base":{"label":"AdRoll:master","ref":"master","sha":"ed8ce65a9a885fb2bfb62c68a1e6c8eee9c4a335","user":{"login":"AdRoll","id":4723070,"avatar_url":"https://avatars.githubusercontent.com/u/4723070?v=3","gravatar_id":"","url":"https://api.github.com/users/AdRoll","html_url":"https://github.com/AdRoll","followers_url":"https://api.github.com/users/AdRoll/followers","following_url":"https://api.github.com/users/AdRoll/following{/other_user}","gists_url":"https://api.github.com/users/AdRoll/gists{/gist_id}","starred_url":"https://api.github.com/users/AdRoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdRoll/subscriptions","organizations_url":"https://api.github.com/users/AdRoll/orgs","repos_url":"https://api.github.com/users/AdRoll/repos","events_url":"https://api.github.com/users/AdRoll/events{/privacy}","received_events_url":"https://api.github.com/users/AdRoll/received_events","type":"Organization","site_admin":false},"repo":{"id":28053761,"name":"hologram","full_name":"AdRoll/hologram","owner":{"login":"AdRoll","id":4723070,"avatar_url":"https://avatars.githubusercontent.com/u/4723070?v=3","gravatar_id":"","url":"https://api.github.com/users/AdRoll","html_url":"https://github.com/AdRoll","followers_url":"https://api.github.com/users/AdRoll/followers","following_url":"https://api.github.com/users/AdRoll/following{/other_user}","gists_url":"https://api.github.com/users/AdRoll/gists{/gist_id}","starred_url":"https://api.github.com/users/AdRoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdRoll/subscriptions","organizations_url":"https://api.github.com/users/AdRoll/orgs","repos_url":"https://api.github.com/users/AdRoll/repos","events_url":"https://api.github.com/users/AdRoll/events{/privacy}","received_events_url":"https://api.github.com/users/AdRoll/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AdRoll/hologram","description":"Easy, painless AWS credentials on developer laptops.","fork":false,"url":"https://api.github.com/repos/AdRoll/hologram","forks_url":"https://api.github.com/repos/AdRoll/hologram/forks","keys_url":"https://api.github.com/repos/AdRoll/hologram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdRoll/hologram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdRoll/hologram/teams","hooks_url":"https://api.github.com/repos/AdRoll/hologram/hooks","issue_events_url":"https://api.github.com/repos/AdRoll/hologram/issues/events{/number}","events_url":"https://api.github.com/repos/AdRoll/hologram/events","assignees_url":"https://api.github.com/repos/AdRoll/hologram/assignees{/user}","branches_url":"https://api.github.com/repos/AdRoll/hologram/branches{/branch}","tags_url":"https://api.github.com/repos/AdRoll/hologram/tags","blobs_url":"https://api.github.com/repos/AdRoll/hologram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdRoll/hologram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdRoll/hologram/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdRoll/hologram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdRoll/hologram/statuses/{sha}","languages_url":"https://api.github.com/repos/AdRoll/hologram/languages","stargazers_url":"https://api.github.com/repos/AdRoll/hologram/stargazers","contributors_url":"https://api.github.com/repos/AdRoll/hologram/contributors","subscribers_url":"https://api.github.com/repos/AdRoll/hologram/subscribers","subscription_url":"https://api.github.com/repos/AdRoll/hologram/subscription","commits_url":"https://api.github.com/repos/AdRoll/hologram/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdRoll/hologram/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdRoll/hologram/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdRoll/hologram/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdRoll/hologram/contents/{+path}","compare_url":"https://api.github.com/repos/AdRoll/hologram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdRoll/hologram/merges","archive_url":"https://api.github.com/repos/AdRoll/hologram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdRoll/hologram/downloads","issues_url":"https://api.github.com/repos/AdRoll/hologram/issues{/number}","pulls_url":"https://api.github.com/repos/AdRoll/hologram/pulls{/number}","milestones_url":"https://api.github.com/repos/AdRoll/hologram/milestones{/number}","notifications_url":"https://api.github.com/repos/AdRoll/hologram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdRoll/hologram/labels{/name}","releases_url":"https://api.github.com/repos/AdRoll/hologram/releases{/id}","created_at":"2014-12-15T20:03:59Z","updated_at":"2015-03-25T22:54:40Z","pushed_at":"2015-03-26T18:04:37Z","git_url":"git://github.com/AdRoll/hologram.git","ssh_url":"git@github.com:AdRoll/hologram.git","clone_url":"https://github.com/AdRoll/hologram.git","svn_url":"https://github.com/AdRoll/hologram","homepage":"","size":548,"stargazers_count":249,"watchers_count":249,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":10,"forks":8,"open_issues":10,"watchers":249,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AdRoll/hologram/pulls/27"},"html":{"href":"https://github.com/AdRoll/hologram/pull/27"},"issue":{"href":"https://api.github.com/repos/AdRoll/hologram/issues/27"},"comments":{"href":"https://api.github.com/repos/AdRoll/hologram/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/AdRoll/hologram/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/AdRoll/hologram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AdRoll/hologram/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/AdRoll/hologram/statuses/9a7f1423cd85c88cb666c8fba28af61276b7e7fd"}}}}