Skip to content

lkingland/buildpacks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boson Project Buildpacks

This repository contains the necessary code to create CNCF buildpacks for functions.

Usage

Run make all to ensure that you have all of the necessary images created and available in your local Docker daemon.

Building a Sample Node.js Application

Set your default builder to the one that you just created.

pack set-default-builder quay.io/boson/faas-nodejs-builder

Then you can build a Node.js function app.

pack build hello-nodejs -p apps/hello-nodejs

Run the app using Docker

docker run --rm -p 8080:8080 hello-nodejs

Send the app a Cloud Event

curl -X POST -d '{"hello": "world"}' \
    -H'Content-type: application/json' \
    -H'Ce-id: 1' \
    -H'Ce-source: cloud-event-example' \
    -H'Ce-type: dev.knative.example' \
    -H'Ce-specversion: 1.0' \
    http://localhost:8080

About

Experimental FaaS buildpacks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 39.1%
  • Dockerfile 20.2%
  • JavaScript 16.7%
  • Makefile 13.7%
  • Go 10.3%