Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.24 KB

setup.md

File metadata and controls

44 lines (30 loc) · 1.24 KB

Usage and Set-Up

CLI

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

Local cluster

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 runtime
  • upload - container exposing the Faasm HTTP API
  • nginx - simple load balancer for the Faasm runtime instances
  • redis-state - Redis instance for holding shared state
  • redis-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.

Writing and deploying functions

See the language-specific docs for C/C++ and Python.