{"action":"created","issue":{"url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/563","repository_url":"https://api.github.com/repos/edgexfoundry/edgex-go","labels_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/563/comments","events_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/563/events","html_url":"https://github.com/edgexfoundry/edgex-go/pull/563","id":360711122,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODY1Mjc1","number":563,"title":"Add dockerfile to build snap","user":{"login":"anonymouse64","id":6006573,"node_id":"MDQ6VXNlcjYwMDY1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/6006573?v=4","gravatar_id":"","url":"https://api.github.com/users/anonymouse64","html_url":"https://github.com/anonymouse64","followers_url":"https://api.github.com/users/anonymouse64/followers","following_url":"https://api.github.com/users/anonymouse64/following{/other_user}","gists_url":"https://api.github.com/users/anonymouse64/gists{/gist_id}","starred_url":"https://api.github.com/users/anonymouse64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anonymouse64/subscriptions","organizations_url":"https://api.github.com/users/anonymouse64/orgs","repos_url":"https://api.github.com/users/anonymouse64/repos","events_url":"https://api.github.com/users/anonymouse64/events{/privacy}","received_events_url":"https://api.github.com/users/anonymouse64/received_events","type":"User","site_admin":false},"labels":[{"id":1017272105,"node_id":"MDU6TGFiZWwxMDE3MjcyMTA1","url":"https://api.github.com/repos/edgexfoundry/edgex-go/labels/snap","name":"snap","color":"ed6fa3","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-17T03:13:22Z","updated_at":"2018-10-08T20:12:26Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/563","html_url":"https://github.com/edgexfoundry/edgex-go/pull/563","diff_url":"https://github.com/edgexfoundry/edgex-go/pull/563.diff","patch_url":"https://github.com/edgexfoundry/edgex-go/pull/563.patch"},"body":"This provides a simple Dockerfile (and script which builds the docker image) that is to be used by CI to build the snap. This removes the need to build the snap on Ubuntu 16.04, and the build for the snap may be run on any OS that runs docker.\r\n\r\nTo test, clone this branch and just run:\r\n\r\n```bash\r\nsnap/build.sh\r\n```\r\n\r\nAfter a while you should see output similar to this:\r\n\r\n```\r\n[[ lots of other log output ]]\r\nStaging mongo-config \r\nStaging mongodb \r\nPriming config-common \r\nPriming go \r\nPriming consul \r\nPriming curl \r\nPriming glide \r\nPriming edgex-go \r\nPriming mongo-config \r\nPriming mongodb \r\nDetermining the version from the project repo (version-script).\r\nThe version has been set to '0.5.2-20180917+11f7d4b'\r\nSnapping 'edgexfoundry' ...\r\n\r\nSnapped edgexfoundry_0.5.2-20180917+11f7d4b_amd64.snap\r\n```\r\n\r\nThe build is currently entirely done inside the container, and whether or not to do the release is determined by a few Jenkins specific environment variables, i.e. `JENKINS_URL` and `JOB_NAME`. If `JENKINS_URL` exists, then we copy the snap store login file into the container. Then we check if the JOB_NAME matches a stage job, and if it does then set a environment variable so the entrypoint script will attempt to release the snap on the specified snap channel.\r\n\r\nSee the associated ci-management job: https://github.com/edgexfoundry/ci-management/pull/211\r\n\r\nThis fixes #557 "},"comment":{"url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/comments/427963982","html_url":"https://github.com/edgexfoundry/edgex-go/pull/563#issuecomment-427963982","issue_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/563","id":427963982,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzk2Mzk4Mg==","user":{"login":"anonymouse64","id":6006573,"node_id":"MDQ6VXNlcjYwMDY1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/6006573?v=4","gravatar_id":"","url":"https://api.github.com/users/anonymouse64","html_url":"https://github.com/anonymouse64","followers_url":"https://api.github.com/users/anonymouse64/followers","following_url":"https://api.github.com/users/anonymouse64/following{/other_user}","gists_url":"https://api.github.com/users/anonymouse64/gists{/gist_id}","starred_url":"https://api.github.com/users/anonymouse64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anonymouse64/subscriptions","organizations_url":"https://api.github.com/users/anonymouse64/orgs","repos_url":"https://api.github.com/users/anonymouse64/repos","events_url":"https://api.github.com/users/anonymouse64/events{/privacy}","received_events_url":"https://api.github.com/users/anonymouse64/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T20:12:26Z","updated_at":"2018-10-08T20:12:26Z","author_association":"MEMBER","body":"recheck"}}
{"actor":{"display_login":"anonymouse64"}}