All Faasm instances are accessible through the containerised CLI, which can be started with cli.sh, i.e.
./bin/cli.sh
This will mount your current project root inside the container and set up the Faasm CLI environment. From inside this container you can perform all interactions with a Faasm deployment.
The Faasm CLI uses Invoke, and a list of the available commands can be shown with:
inv -l
To start a local deployment, you can run:
docker-compose up
which creates the containers defined in docker-compose.yml:
worker
- one or more instances of the Faasm runtimeupload
- container exposing the Faasm HTTP APInginx
- simple load balancer for the Faasm runtime instancesredis-state
- Redis instance for holding shared stateredis-queue
- Redis instance for handling queueing of messages between Faasm instances
Faasm will generate machine code from all WebAssembly it encounters. This is
stored in the machine-code
directory at the root of this project.