{"action":"created","issue":{"url":"https://api.github.com/repos/docker/fig/issues/495","labels_url":"https://api.github.com/repos/docker/fig/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/docker/fig/issues/495/comments","events_url":"https://api.github.com/repos/docker/fig/issues/495/events","html_url":"https://github.com/docker/fig/issues/495","id":43744053,"number":495,"title":"Pass variables inside fig.yml on runtime","user":{"login":"spiddy","id":367397,"avatar_url":"https://avatars.githubusercontent.com/u/367397?v=3","gravatar_id":"","url":"https://api.github.com/users/spiddy","html_url":"https://github.com/spiddy","followers_url":"https://api.github.com/users/spiddy/followers","following_url":"https://api.github.com/users/spiddy/following{/other_user}","gists_url":"https://api.github.com/users/spiddy/gists{/gist_id}","starred_url":"https://api.github.com/users/spiddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiddy/subscriptions","organizations_url":"https://api.github.com/users/spiddy/orgs","repos_url":"https://api.github.com/users/spiddy/repos","events_url":"https://api.github.com/users/spiddy/events{/privacy}","received_events_url":"https://api.github.com/users/spiddy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/fig/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":33,"created_at":"2014-09-24T09:44:59Z","updated_at":"2015-01-07T01:19:42Z","closed_at":null,"body":"Is it possible to configure a fig.yml in such way that you can pass on execution time variables instead of hard-wiring them inside the fig.yml?\r\n\r\nI think a generic variable injection during execution would be quite useful for various use cases.\r\n\r\ne.g:\r\n\r\n<pre>\r\njenkins:\r\n  image: aespinosa/jenkins:latest\r\n  ports:\r\n    - \"8080\"\r\n  hostname: ${HOSTNAME}\r\n</pre>\r\n\r\nHOSTNAME=ci fig up\r\n\r\nThat could inject the variable HOSTNAME inside the fig.yml during execution and execute a docker run with hostname `ci`.\r\n\r\nps. This is different than passing environment variables inside docker which is already supported (http://www.fig.sh/yml.html#environment)\r\n"},"comment":{"url":"https://api.github.com/repos/docker/fig/issues/comments/68964588","html_url":"https://github.com/docker/fig/issues/495#issuecomment-68964588","issue_url":"https://api.github.com/repos/docker/fig/issues/495","id":68964588,"user":{"login":"NoumanSaleem","id":694071,"avatar_url":"https://avatars.githubusercontent.com/u/694071?v=3","gravatar_id":"","url":"https://api.github.com/users/NoumanSaleem","html_url":"https://github.com/NoumanSaleem","followers_url":"https://api.github.com/users/NoumanSaleem/followers","following_url":"https://api.github.com/users/NoumanSaleem/following{/other_user}","gists_url":"https://api.github.com/users/NoumanSaleem/gists{/gist_id}","starred_url":"https://api.github.com/users/NoumanSaleem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoumanSaleem/subscriptions","organizations_url":"https://api.github.com/users/NoumanSaleem/orgs","repos_url":"https://api.github.com/users/NoumanSaleem/repos","events_url":"https://api.github.com/users/NoumanSaleem/events{/privacy}","received_events_url":"https://api.github.com/users/NoumanSaleem/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T01:19:42Z","updated_at":"2015-01-07T01:19:42Z","body":":+1: "}}