Function Buildpacks for Knative
Enables a FaaS experience for Knative / Cloud Native Runtimes.
Will soon extend func to create deployable functions via CLI.
Pre-Requisites
Currently Supported
- Python
- Java (Spring)
Future
- NodeJS
- .NET
- Rust
Usage
The buildpacks in this repository have been built, published, and included in the builder.
The builder is also built and published as an image to gcr.io
-- to build an image from source, simply use the builder as shown below.
For example:
pack build
--path /path/to/function --builder us.gcr.io/daisy-284300/kn-fn/builder:0.0.1
For more details you can refer to language-specific documentation:
- Python
- Java (Alpha)
- Buildpack/Function details
- Samples
- Templates
- The Java Invoker currently lives in
java-invoker
Creating the Builder from Source
- Build the buildpacks
make buildpacks
TODO: Tag specific versions rather than depending on latest
- Build the builder
make builder
Note the builder name in the output. Use this local builder in the pack build
command similarly to above.
Documentation
Each subdirectory has a relevant README.md describing how to use its respective files.
Contributing
The function-buildpacks-for-knative project team welcomes contributions from the community. Before you start working with function-buildpacks-for-knative, please read our Developer Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch. For more detailed information, refer to CONTRIBUTING.md.