{"action":"closed","number":2239,"pull_request":{"url":"https://api.github.com/repos/deis/deis/pulls/2239","id":23210523,"html_url":"https://github.com/deis/deis/pull/2239","diff_url":"https://github.com/deis/deis/pull/2239.diff","patch_url":"https://github.com/deis/deis/pull/2239.patch","issue_url":"https://api.github.com/repos/deis/deis/issues/2239","number":2239,"state":"closed","locked":false,"title":"feat(*): interactive deis run","user":{"login":"johanneswuerbach","id":864578,"avatar_url":"https://avatars.githubusercontent.com/u/864578?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneswuerbach","html_url":"https://github.com/johanneswuerbach","followers_url":"https://api.github.com/users/johanneswuerbach/followers","following_url":"https://api.github.com/users/johanneswuerbach/following{/other_user}","gists_url":"https://api.github.com/users/johanneswuerbach/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneswuerbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneswuerbach/subscriptions","organizations_url":"https://api.github.com/users/johanneswuerbach/orgs","repos_url":"https://api.github.com/users/johanneswuerbach/repos","events_url":"https://api.github.com/users/johanneswuerbach/events{/privacy}","received_events_url":"https://api.github.com/users/johanneswuerbach/received_events","type":"User","site_admin":false},"body":"This is a bit rough around the edges, but it works :bomb: \r\n\r\n```\r\nJohannes:example-ruby-sinatra johannes$ deis run bash\r\nRunning `bash`...\r\nls\r\nslug@954091b9a21b:~$ ls\r\nbin  Gemfile  Gemfile.lock  LICENSE  Procfile  README.md  tmp  vendor  web.rb\r\necho \"test\"\r\nslug@954091b9a21b:~$ echo \"test\"\r\ntest\r\nenv\r\nslug@954091b9a21b:~$ env\r\nHOSTNAME=954091b9a21b\r\nTERM=xterm\r\nRACK_ENV=production\r\nDEIS_APP=truthy-chinbone\r\nPATH=/app/bin:/app/vendor/bundle/bin:/app/vendor/bundle/ruby/1.9.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\nPWD=/app\r\nLANG=en_US.UTF-8\r\nGIT_SHA=03a83a276110272005d707379c3acd282c79724d\r\nSHLVL=2\r\nHOME=/app\r\nGEM_PATH=/app/vendor/bundle/ruby/1.9.1:\r\nPORT=5000\r\nDEIS_RELEASE=v2\r\n_=/usr/bin/env\r\nexit\r\nslug@954091b9a21b:~$ exit\r\nexit\r\n0\r\n```\r\n\r\nReplaces https://github.com/deis/deis/pull/1837, https://github.com/deis/deis/pull/1875\r\n\r\nTodos:\r\n- [x] `slug@954091b9a21b:~$` should be written before stdin is requested\r\n- [x] Exit deis run with the same exit code as the command \r\n- [x] Setup load balancer port forwarding\r\n- [x] Destroy fleet units after run (ideas?)\r\n\r\nNice to have:\r\n- [ ] Command should not be echoed\r\n- [ ] Option to use wss (or detect on https in controller url)\r\n- [ ] Pipe stdout and stderr\r\n- [x] Shrink pty image together with master shrinker @aledbf ","created_at":"2014-10-23T07:21:20Z","updated_at":"2015-02-12T19:02:56Z","closed_at":"2015-02-12T19:02:56Z","merged_at":null,"merge_commit_sha":"c4ecd260e4fff960b40a11e0a02681fcc76da6da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deis/deis/pulls/2239/commits","review_comments_url":"https://api.github.com/repos/deis/deis/pulls/2239/comments","review_comment_url":"https://api.github.com/repos/deis/deis/pulls/comments/{number}","comments_url":"https://api.github.com/repos/deis/deis/issues/2239/comments","statuses_url":"https://api.github.com/repos/deis/deis/statuses/53d2058f5a349d70da9cc0106306a1fee569cef4","head":{"label":"johanneswuerbach:interactive-run","ref":"interactive-run","sha":"53d2058f5a349d70da9cc0106306a1fee569cef4","user":{"login":"johanneswuerbach","id":864578,"avatar_url":"https://avatars.githubusercontent.com/u/864578?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneswuerbach","html_url":"https://github.com/johanneswuerbach","followers_url":"https://api.github.com/users/johanneswuerbach/followers","following_url":"https://api.github.com/users/johanneswuerbach/following{/other_user}","gists_url":"https://api.github.com/users/johanneswuerbach/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneswuerbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneswuerbach/subscriptions","organizations_url":"https://api.github.com/users/johanneswuerbach/orgs","repos_url":"https://api.github.com/users/johanneswuerbach/repos","events_url":"https://api.github.com/users/johanneswuerbach/events{/privacy}","received_events_url":"https://api.github.com/users/johanneswuerbach/received_events","type":"User","site_admin":false},"repo":{"id":18689654,"name":"deis","full_name":"johanneswuerbach/deis","owner":{"login":"johanneswuerbach","id":864578,"avatar_url":"https://avatars.githubusercontent.com/u/864578?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneswuerbach","html_url":"https://github.com/johanneswuerbach","followers_url":"https://api.github.com/users/johanneswuerbach/followers","following_url":"https://api.github.com/users/johanneswuerbach/following{/other_user}","gists_url":"https://api.github.com/users/johanneswuerbach/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneswuerbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneswuerbach/subscriptions","organizations_url":"https://api.github.com/users/johanneswuerbach/orgs","repos_url":"https://api.github.com/users/johanneswuerbach/repos","events_url":"https://api.github.com/users/johanneswuerbach/events{/privacy}","received_events_url":"https://api.github.com/users/johanneswuerbach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johanneswuerbach/deis","description":"Your PaaS. Your Rules. ","fork":true,"url":"https://api.github.com/repos/johanneswuerbach/deis","forks_url":"https://api.github.com/repos/johanneswuerbach/deis/forks","keys_url":"https://api.github.com/repos/johanneswuerbach/deis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johanneswuerbach/deis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johanneswuerbach/deis/teams","hooks_url":"https://api.github.com/repos/johanneswuerbach/deis/hooks","issue_events_url":"https://api.github.com/repos/johanneswuerbach/deis/issues/events{/number}","events_url":"https://api.github.com/repos/johanneswuerbach/deis/events","assignees_url":"https://api.github.com/repos/johanneswuerbach/deis/assignees{/user}","branches_url":"https://api.github.com/repos/johanneswuerbach/deis/branches{/branch}","tags_url":"https://api.github.com/repos/johanneswuerbach/deis/tags","blobs_url":"https://api.github.com/repos/johanneswuerbach/deis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johanneswuerbach/deis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johanneswuerbach/deis/git/refs{/sha}","trees_url":"https://api.github.com/repos/johanneswuerbach/deis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johanneswuerbach/deis/statuses/{sha}","languages_url":"https://api.github.com/repos/johanneswuerbach/deis/languages","stargazers_url":"https://api.github.com/repos/johanneswuerbach/deis/stargazers","contributors_url":"https://api.github.com/repos/johanneswuerbach/deis/contributors","subscribers_url":"https://api.github.com/repos/johanneswuerbach/deis/subscribers","subscription_url":"https://api.github.com/repos/johanneswuerbach/deis/subscription","commits_url":"https://api.github.com/repos/johanneswuerbach/deis/commits{/sha}","git_commits_url":"https://api.github.com/repos/johanneswuerbach/deis/git/commits{/sha}","comments_url":"https://api.github.com/repos/johanneswuerbach/deis/comments{/number}","issue_comment_url":"https://api.github.com/repos/johanneswuerbach/deis/issues/comments/{number}","contents_url":"https://api.github.com/repos/johanneswuerbach/deis/contents/{+path}","compare_url":"https://api.github.com/repos/johanneswuerbach/deis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johanneswuerbach/deis/merges","archive_url":"https://api.github.com/repos/johanneswuerbach/deis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johanneswuerbach/deis/downloads","issues_url":"https://api.github.com/repos/johanneswuerbach/deis/issues{/number}","pulls_url":"https://api.github.com/repos/johanneswuerbach/deis/pulls{/number}","milestones_url":"https://api.github.com/repos/johanneswuerbach/deis/milestones{/number}","notifications_url":"https://api.github.com/repos/johanneswuerbach/deis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johanneswuerbach/deis/labels{/name}","releases_url":"https://api.github.com/repos/johanneswuerbach/deis/releases{/id}","created_at":"2014-04-11T21:41:55Z","updated_at":"2015-01-27T16:39:29Z","pushed_at":"2015-02-12T06:44:12Z","git_url":"git://github.com/johanneswuerbach/deis.git","ssh_url":"git@github.com:johanneswuerbach/deis.git","clone_url":"https://github.com/johanneswuerbach/deis.git","svn_url":"https://github.com/johanneswuerbach/deis","homepage":"http://deis.io","size":15889,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"deis:master","ref":"master","sha":"2d1db8e9f2e0806e3d06cf2acc565bad2966ce5e","user":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"repo":{"id":11589713,"name":"deis","full_name":"deis/deis","owner":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deis/deis","description":"Your PaaS. Your Rules. ","fork":false,"url":"https://api.github.com/repos/deis/deis","forks_url":"https://api.github.com/repos/deis/deis/forks","keys_url":"https://api.github.com/repos/deis/deis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deis/deis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deis/deis/teams","hooks_url":"https://api.github.com/repos/deis/deis/hooks","issue_events_url":"https://api.github.com/repos/deis/deis/issues/events{/number}","events_url":"https://api.github.com/repos/deis/deis/events","assignees_url":"https://api.github.com/repos/deis/deis/assignees{/user}","branches_url":"https://api.github.com/repos/deis/deis/branches{/branch}","tags_url":"https://api.github.com/repos/deis/deis/tags","blobs_url":"https://api.github.com/repos/deis/deis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deis/deis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deis/deis/git/refs{/sha}","trees_url":"https://api.github.com/repos/deis/deis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deis/deis/statuses/{sha}","languages_url":"https://api.github.com/repos/deis/deis/languages","stargazers_url":"https://api.github.com/repos/deis/deis/stargazers","contributors_url":"https://api.github.com/repos/deis/deis/contributors","subscribers_url":"https://api.github.com/repos/deis/deis/subscribers","subscription_url":"https://api.github.com/repos/deis/deis/subscription","commits_url":"https://api.github.com/repos/deis/deis/commits{/sha}","git_commits_url":"https://api.github.com/repos/deis/deis/git/commits{/sha}","comments_url":"https://api.github.com/repos/deis/deis/comments{/number}","issue_comment_url":"https://api.github.com/repos/deis/deis/issues/comments/{number}","contents_url":"https://api.github.com/repos/deis/deis/contents/{+path}","compare_url":"https://api.github.com/repos/deis/deis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deis/deis/merges","archive_url":"https://api.github.com/repos/deis/deis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deis/deis/downloads","issues_url":"https://api.github.com/repos/deis/deis/issues{/number}","pulls_url":"https://api.github.com/repos/deis/deis/pulls{/number}","milestones_url":"https://api.github.com/repos/deis/deis/milestones{/number}","notifications_url":"https://api.github.com/repos/deis/deis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deis/deis/labels{/name}","releases_url":"https://api.github.com/repos/deis/deis/releases{/id}","created_at":"2013-07-22T19:02:40Z","updated_at":"2015-02-12T13:23:04Z","pushed_at":"2015-02-12T00:55:38Z","git_url":"git://github.com/deis/deis.git","ssh_url":"git@github.com:deis/deis.git","clone_url":"https://github.com/deis/deis.git","svn_url":"https://github.com/deis/deis","homepage":"http://deis.io","size":33886,"stargazers_count":3780,"watchers_count":3780,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":535,"mirror_url":null,"open_issues_count":170,"forks":535,"open_issues":170,"watchers":3780,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deis/deis/pulls/2239"},"html":{"href":"https://github.com/deis/deis/pull/2239"},"issue":{"href":"https://api.github.com/repos/deis/deis/issues/2239"},"comments":{"href":"https://api.github.com/repos/deis/deis/issues/2239/comments"},"review_comments":{"href":"https://api.github.com/repos/deis/deis/pulls/2239/comments"},"review_comment":{"href":"https://api.github.com/repos/deis/deis/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/deis/deis/pulls/2239/commits"},"statuses":{"href":"https://api.github.com/repos/deis/deis/statuses/53d2058f5a349d70da9cc0106306a1fee569cef4"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":10,"review_comments":0,"commits":1,"additions":4124,"deletions":135,"changed_files":80}}