Files
fn-serverless/examples/sleeper/README.md
2016-10-13 20:27:39 -07:00

330 B

This is a worker that just echoes the "input" param in the payload.

eg:

This input:

{
  "sleep": 5
}

Will make this container sleep for 5 seconds.

Building Image

Install dj, then run:

docker build -t iron/sleeper .
docker run -e 'PAYLOAD={"sleep": 5}' iron/sleeper