{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8516","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8516/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8516/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8516/events","html_url":"https://github.com/Automattic/wp-calypso/pull/8516","id":181291518,"number":8516,"title":"Update the Dockerfile for building and testing Calypso","user":{"login":"dmsnell","id":5431237,"avatar_url":"https://avatars.githubusercontent.com/u/5431237?v=3","gravatar_id":"","url":"https://api.github.com/users/dmsnell","html_url":"https://github.com/dmsnell","followers_url":"https://api.github.com/users/dmsnell/followers","following_url":"https://api.github.com/users/dmsnell/following{/other_user}","gists_url":"https://api.github.com/users/dmsnell/gists{/gist_id}","starred_url":"https://api.github.com/users/dmsnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmsnell/subscriptions","organizations_url":"https://api.github.com/users/dmsnell/orgs","repos_url":"https://api.github.com/users/dmsnell/repos","events_url":"https://api.github.com/users/dmsnell/events{/privacy}","received_events_url":"https://api.github.com/users/dmsnell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Framework","name":"Framework","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-05T23:33:15Z","updated_at":"2016-10-06T21:43:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/8516","html_url":"https://github.com/Automattic/wp-calypso/pull/8516","diff_url":"https://github.com/Automattic/wp-calypso/pull/8516.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/8516.patch"},"body":"Previously the project `Dockerfile` was build from a Debian base image\r\nand took a wihle to build and the final image ended up around 1 GB in\r\nsize.\r\n\r\nNow we build from an official node image which lets us skip installing\r\nnode inside the image build process and I have combined many operations\r\ninto fewer commands which reduces the number of layers in the final\r\nimage. Each layer adds significant overhead to any operations that need\r\nto read or write to the filesystem.\r\n\r\nThis should not change the functionality of the Docker image. It is\r\nmeant to simply update the build process to be more efficient.\r\n\r\n**Testing**\r\nBuild the Docker image and attempt to run it just like before.\r\n\r\n```bash\r\ndocker build -t wp-calypso .\r\ndocker run --rm -it --name wp-calypso -p 80:3000 -e NODE_ENV='wpcalypso' -e CALYPSO_ENV='wpcalypso' wp-calypso\r\n```\r\n\r\nSandbox `wpcalypso` to `127.0.0.1`\r\nOpen a browser (without proxy/with direct networking access) to `wpcalypso.wordpress.com`\r\n\r\ncc: @gwwar @lamosty @mtias "},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/252097493","html_url":"https://github.com/Automattic/wp-calypso/pull/8516#issuecomment-252097493","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8516","id":252097493,"user":{"login":"gwwar","id":1270189,"avatar_url":"https://avatars.githubusercontent.com/u/1270189?v=3","gravatar_id":"","url":"https://api.github.com/users/gwwar","html_url":"https://github.com/gwwar","followers_url":"https://api.github.com/users/gwwar/followers","following_url":"https://api.github.com/users/gwwar/following{/other_user}","gists_url":"https://api.github.com/users/gwwar/gists{/gist_id}","starred_url":"https://api.github.com/users/gwwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwwar/subscriptions","organizations_url":"https://api.github.com/users/gwwar/orgs","repos_url":"https://api.github.com/users/gwwar/repos","events_url":"https://api.github.com/users/gwwar/events{/privacy}","received_events_url":"https://api.github.com/users/gwwar/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T21:43:15Z","updated_at":"2016-10-06T21:43:15Z","body":"👍 Tested the image build, and running it in a wpcalypso env. Things seem to work well. \r\n\r\nIf no one else can find any blockers, I'd say 🚢 but maybe coordinate a 🔴 in the Calypso channel in case we need to revert."}}
{"actor":{"display_login":"gwwar"}}