mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
This is a worker that we can use to check inputs to the job, such as env vars.
Pass in checks via the payload:
{
"env_vars": {
"foo": "bar"
}
}
That will check that there is an env var called foo with the value bar passed to the task.
Building Image
Install dj, then run:
docker build -t iron/checker .
docker run -e 'PAYLOAD={"env_vars": {"FOO": "bar"}}' -e "FOO=bar" iron/checker