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:
1 parent
8d526b964b
commit
5fd5e235d8
1 file changed
+5
@@ -21,6 +21,11 @@ func main() {
|
|||||||
appName := flag.Arg(0)
|
appName := flag.Arg(0)
|
||||||
processType := flag.Arg(3)
|
processType := flag.Arg(3)
|
||||||
|
|
||||||
|
if os.Getenv("DOKKU_OMIT_RESOURCE_ARGS") == "1" {
|
||||||
|
fmt.Print(string(stdin))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
resources, err := common.PropertyGetAll("resource", appName)
|
resources, err := common.PropertyGetAll("resource", appName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Print(string(stdin))
|
fmt.Print(string(stdin))
|
||||||
|
|||||||
Reference in new issue
Block a user