{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku-redis/issues/65","repository_url":"https://api.github.com/repos/dokku/dokku-redis","labels_url":"https://api.github.com/repos/dokku/dokku-redis/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku-redis/issues/65/comments","events_url":"https://api.github.com/repos/dokku/dokku-redis/issues/65/events","html_url":"https://github.com/dokku/dokku-redis/issues/65","id":173729084,"number":65,"title":"[RFC] New command: dokku service:enter SERVICE","user":{"login":"josegonzalez","id":65675,"avatar_url":"https://avatars.githubusercontent.com/u/65675?v=3","gravatar_id":"","url":"https://api.github.com/users/josegonzalez","html_url":"https://github.com/josegonzalez","followers_url":"https://api.github.com/users/josegonzalez/followers","following_url":"https://api.github.com/users/josegonzalez/following{/other_user}","gists_url":"https://api.github.com/users/josegonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/josegonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josegonzalez/subscriptions","organizations_url":"https://api.github.com/users/josegonzalez/orgs","repos_url":"https://api.github.com/users/josegonzalez/repos","events_url":"https://api.github.com/users/josegonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/josegonzalez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dokku/dokku-redis/labels/type:%20enhancement","name":"type: enhancement","color":"09ab3c"},{"url":"https://api.github.com/repos/dokku/dokku-redis/labels/type:%20rfc","name":"type: rfc","color":"0052cc"},{"url":"https://api.github.com/repos/dokku/dokku-redis/labels/type:%20service","name":"type: service","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T09:04:47Z","updated_at":"2016-08-29T12:24:18Z","closed_at":"2016-08-29T12:24:18Z","body":"Currently if a user wants to run a command against a service container, they have to remember a weird incantation:\r\n\r\n```\r\ndocker exec -it $(dokku postgres:info SERVICE --id) bash -c \"$COMMAND\"\r\n```\r\n\r\nSuch lulz. Instead, it would be great to provide a command like this:\r\n\r\n```\r\ndokku postgres:enter SERVICE \"$COMMAND\"\r\n```\r\n\r\nWe use `enter` instead of `run` as the command name as the semantics of `run` in dokku core mean spinning up a new container. `run` can be an alias for `enter`, with an added warning - to stderr - saying that the running container is the one where the command will be executed against.\r\n\r\nWe should also potentially add a warning to stderr saying that the destroying/recreating the container will result in a loss of the output of that command, in the case that the command changes the filesystem in some way that isn't saved to mounted directories (`data` or `config`). Users should expect to execute said commands again in the case that the container is brought up from scratch, though restarts should be just fine."},"comment":{"url":"https://api.github.com/repos/dokku/dokku-redis/issues/comments/243109157","html_url":"https://github.com/dokku/dokku-redis/issues/65#issuecomment-243109157","issue_url":"https://api.github.com/repos/dokku/dokku-redis/issues/65","id":243109157,"user":{"login":"josegonzalez","id":65675,"avatar_url":"https://avatars.githubusercontent.com/u/65675?v=3","gravatar_id":"","url":"https://api.github.com/users/josegonzalez","html_url":"https://github.com/josegonzalez","followers_url":"https://api.github.com/users/josegonzalez/followers","following_url":"https://api.github.com/users/josegonzalez/following{/other_user}","gists_url":"https://api.github.com/users/josegonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/josegonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josegonzalez/subscriptions","organizations_url":"https://api.github.com/users/josegonzalez/orgs","repos_url":"https://api.github.com/users/josegonzalez/repos","events_url":"https://api.github.com/users/josegonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/josegonzalez/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T12:24:18Z","updated_at":"2016-08-29T12:24:18Z","body":"Closed by d23b521142ceb74a50284dc5863702d52f9cddd6."}}
{"actor":{"display_login":"josegonzalez"}}