{"push_id":724286330,"size":1,"distinct_size":1,"ref":"refs/heads/issues/1018-more-flexible-hostname-derivation","head":"6140b5ed41e68b40a0e44f475b2c395eda9f081e","before":"4fc3931e4ff92681d3b0e7d6be3fd41ad4160113","commits":[{"sha":"6140b5ed41e68b40a0e44f475b2c395eda9f081e","author":{"email":"9d041ed1c675b2b8809e57bf5ee1fbb21816eaed@weave.works","name":"Alfonso Acosta"},"message":"[proxy] More flexible container name -> hostname derivation\n\nProvides a new \"--hostname=substitution\" flag to WeaveProxy, where\n'substitution' is a sed-style substitution command. 'substitution' will be\napplied to container names at launch-time, as a means to control what hostnames will\nbe registered in WeaveDNS.\n\nThe substitution is implemented with\nhttps://golang.org/pkg/regexp/#Regexp.ReplaceAllString . Thus, references to\nregexp substitution groups should be prepended with a dollar sign.\n\nFor instance, if we provide \"--hostname='/aws-[0-9]+-(.*)/my-app-$1/'\", running\na container named 'aws-12798186823-foo' through WeaveProxy will lead to WeaveDNS\nregistering 'my-app-foo'.\n\nCloses #1018","distinct":true,"url":"https://api.github.com/repos/weaveworks/weave/commits/6140b5ed41e68b40a0e44f475b2c395eda9f081e"}]}