{"action":"created","issue":{"url":"https://api.github.com/repos/mapzen/data-pages/issues/126","repository_url":"https://api.github.com/repos/mapzen/data-pages","labels_url":"https://api.github.com/repos/mapzen/data-pages/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/mapzen/data-pages/issues/126/comments","events_url":"https://api.github.com/repos/mapzen/data-pages/issues/126/events","html_url":"https://github.com/mapzen/data-pages/issues/126","id":164941545,"number":126,"title":"Do we want to deploy with Docker?","user":{"login":"migurski","id":58730,"avatar_url":"https://avatars.githubusercontent.com/u/58730?v=3","gravatar_id":"","url":"https://api.github.com/users/migurski","html_url":"https://github.com/migurski","followers_url":"https://api.github.com/users/migurski/followers","following_url":"https://api.github.com/users/migurski/following{/other_user}","gists_url":"https://api.github.com/users/migurski/gists{/gist_id}","starred_url":"https://api.github.com/users/migurski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migurski/subscriptions","organizations_url":"https://api.github.com/users/migurski/orgs","repos_url":"https://api.github.com/users/migurski/repos","events_url":"https://api.github.com/users/migurski/events{/privacy}","received_events_url":"https://api.github.com/users/migurski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapzen/data-pages/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/mapzen/data-pages/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-11T21:42:36Z","updated_at":"2016-07-12T22:09:09Z","closed_at":null,"body":"In conversation about deploying Extracts, @baldur suggested that the Ops team Docker work might be appropriate. Here is a minimal `Dockerfile` that sets up the application:\r\n\r\n```\r\nFROM ubuntu:16.04\r\n\r\nRUN apt-get update -y && apt-get install -y python3-pip postgresql-server-dev-all\r\n\r\nCOPY . /usr/local/extracts\r\n\r\nRUN pip3 install -r /usr/local/extracts/requirements.txt\r\n\r\nENV DATABASE_URL=postgres://user:pass@host:5432/database \\\r\n    FLASK_SECRET_KEY=secret \\\r\n    MAPZEN_APP_ID=oauth-client-id \\\r\n    MAPZEN_APP_SECRET=oauth-client-secret\r\n\r\nEXPOSE 5000\r\n```\r\n\r\nI’ve not tested this with a running app, but it can be started by calling `honcho start` in `/usr/local/extracts`. Kicking this over to Ops just in case it’s useful for future deployment plans."},"comment":{"url":"https://api.github.com/repos/mapzen/data-pages/issues/comments/232197130","html_url":"https://github.com/mapzen/data-pages/issues/126#issuecomment-232197130","issue_url":"https://api.github.com/repos/mapzen/data-pages/issues/126","id":232197130,"user":{"login":"baldur","id":759,"avatar_url":"https://avatars.githubusercontent.com/u/759?v=3","gravatar_id":"","url":"https://api.github.com/users/baldur","html_url":"https://github.com/baldur","followers_url":"https://api.github.com/users/baldur/followers","following_url":"https://api.github.com/users/baldur/following{/other_user}","gists_url":"https://api.github.com/users/baldur/gists{/gist_id}","starred_url":"https://api.github.com/users/baldur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baldur/subscriptions","organizations_url":"https://api.github.com/users/baldur/orgs","repos_url":"https://api.github.com/users/baldur/repos","events_url":"https://api.github.com/users/baldur/events{/privacy}","received_events_url":"https://api.github.com/users/baldur/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T22:09:09Z","updated_at":"2016-07-12T22:09:09Z","body":"Just verifed the reloading works and https://docs.docker.com/engine/installation/mac/ will install everything correctly. @tigerlily-he has verified on her laptop and the instructions worked and she was up within minutes.\r\n\r\nI'll demo in SF next week and then we can setup the RDS instances and get it ready for production."}}
{"actor":{"display_login":"baldur"}}