{"action":"created","issue":{"url":"https://api.github.com/repos/micahhausler/container-transform/issues/53","repository_url":"https://api.github.com/repos/micahhausler/container-transform","labels_url":"https://api.github.com/repos/micahhausler/container-transform/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/micahhausler/container-transform/issues/53/comments","events_url":"https://api.github.com/repos/micahhausler/container-transform/issues/53/events","html_url":"https://github.com/micahhausler/container-transform/issues/53","id":159245667,"number":53,"title":"Add \"docker run\" output option","user":{"login":"TylerRick","id":14151,"avatar_url":"https://avatars.githubusercontent.com/u/14151?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerRick","html_url":"https://github.com/TylerRick","followers_url":"https://api.github.com/users/TylerRick/followers","following_url":"https://api.github.com/users/TylerRick/following{/other_user}","gists_url":"https://api.github.com/users/TylerRick/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerRick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerRick/subscriptions","organizations_url":"https://api.github.com/users/TylerRick/orgs","repos_url":"https://api.github.com/users/TylerRick/repos","events_url":"https://api.github.com/users/TylerRick/events{/privacy}","received_events_url":"https://api.github.com/users/TylerRick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-08T19:00:57Z","updated_at":"2016-06-08T20:38:41Z","closed_at":null,"body":"I didn't see this listed as one of the output options, so I'd like to request this feature:\r\n\r\nSometimes it can be useful to be able to run a `docker run` command that is equivalent to you `docker-compose.yml`. So the `environment` section would be converted to `--env` options, etc."},"comment":{"url":"https://api.github.com/repos/micahhausler/container-transform/issues/comments/224719953","html_url":"https://github.com/micahhausler/container-transform/issues/53#issuecomment-224719953","issue_url":"https://api.github.com/repos/micahhausler/container-transform/issues/53","id":224719953,"user":{"login":"TylerRick","id":14151,"avatar_url":"https://avatars.githubusercontent.com/u/14151?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerRick","html_url":"https://github.com/TylerRick","followers_url":"https://api.github.com/users/TylerRick/followers","following_url":"https://api.github.com/users/TylerRick/following{/other_user}","gists_url":"https://api.github.com/users/TylerRick/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerRick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerRick/subscriptions","organizations_url":"https://api.github.com/users/TylerRick/orgs","repos_url":"https://api.github.com/users/TylerRick/repos","events_url":"https://api.github.com/users/TylerRick/events{/privacy}","received_events_url":"https://api.github.com/users/TylerRick/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T20:38:41Z","updated_at":"2016-06-08T20:38:41Z","body":"Ack, you're going to tell me that there's not a one-to-one mapping between a `docker-compose.yml` file and a `docker run` command — I see now from the `systemd` output from my own `docker-compose.yml` file that it in fact generates `docker run` command for each *service* (and of course, it would).\r\n\r\nSo I guess what I would love to see is an optional option for specifying *which* service you want the output for. So if you want the `docker run` command for the `db` service, you might run something like `cat docker-compose.yml | container-transform --output-type=docker-run --service=db`.\r\n\r\nOr if that option were omitted, it could concatenate together the `docker run` commands for each service, such that evaluating its output (as a shell script) would start up containers for all of those services (equivalent to a `docker-compose up` (or maybe a `docker-compose up -d`))..."}}
{"actor":{"display_login":"TylerRick"}}