🛠 Status: Early experimental phase
This project is very much a work in progress. What you see here is only an early preview of the project.
Build OpenFaas function images with Nix.
{pkgs, ...}:
let
inherit (pkgs.pkgsStatic) figlet;
in
pkgs.ofTools.buildOfImage {
name = "figlet";
tag = "latest";
watchdog = "of-watchdog";
watchdogMode = "serializing";
fprocess = "${figlet}/bin/figlet";
}
This example recreates the figlet image from the openfaas store but uses the of-watchdog
instead of the classic-watchdog
used in the original image.
Not yet part of the repo but hope to publish it soon.
Instead of configuring functions in YAML files nix-faas
will use the Nix language to build and configure functions (similar to what Arion does for docker-compose).
The nix-faas
cli will be a wrapper around the faas-cli making it possible to deploy Nix defined function to any system running OpenFaaS.