The command function invoker provides a Docker base layer for a function consisting of a single command. It accepts HTTP requests and invokes the command for each request.
The following tools are required to build this project:
- Glide for dependency management
If you intend to re-generate mocks for testing, install:
If you would like to run tests using the
ginkgo command, install:
Get the source
cd $(go env GOPATH) #defaults to ~/go git clone -o upstream https://github.com/projectriff/command-function-invoker src/github.com/projectriff/command-function-invoker
To build locally (this will produce a binary named
command-function-invoker on your machine):
To build the Docker base layer:
This assumes that your docker client is correctly configured to target the daemon where you want the image built.
To run tests: