feat: allow omitting resource args by setting DOKKU_OMIT_RESOURCE_ARGS

This is useful for one-off containers that should have full-access to server resources.
This commit is contained in:
Jose Diaz-Gonzalez
2019-05-30 13:23:38 -04:00
parent 8d526b964b
commit 5fd5e235d8

View File

@@ -21,6 +21,11 @@ func main() {
appName := flag.Arg(0)
processType := flag.Arg(3)
if os.Getenv("DOKKU_OMIT_RESOURCE_ARGS") == "1" {
fmt.Print(string(stdin))
return
}
resources, err := common.PropertyGetAll("resource", appName)
if err != nil {
fmt.Print(string(stdin))