Script content
Opened this issue · 0 comments
gianarb commented
At the moment is not supported a content for our script..
https://github.com/gianarb/gourmet/blob/master/api/project.go#L30
Maybe we can use another parameter content
to increase dynamicity.
{
"img": "gourmet/php",
"source": "https://ramdom-your-source.net/gourmet.zip",
"env": [
"AWS_KEY=EXAMPLE",
"AWS_SECRET=super-secret-ecrypted-with-vault-parameter",
"AWS_QUEUE=https://sqs.eu-west-1.amazonaws.com/test"
],
"content": {
}
}
I don't know if it works but..
runner.Exec(containerId, []string{fmt.Sprintf("bin/console %s", t.Content})
In this way we can use content
for example in PHP with $args