https://github.com/jromero/openfaas-cnb
Cloud Native Buildpack for OpenFaaS
https://github.com/jromero/openfaas-cnb
buildpack cloud-native-buildpacks openfaas
Last synced: 7 months ago
JSON representation
Cloud Native Buildpack for OpenFaaS
- Host: GitHub
- URL: https://github.com/jromero/openfaas-cnb
- Owner: jromero
- License: apache-2.0
- Created: 2020-01-15T13:00:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-13T02:41:02.000Z (over 5 years ago)
- Last Synced: 2025-01-24T05:31:45.413Z (9 months ago)
- Topics: buildpack, cloud-native-buildpacks, openfaas
- Language: Go
- Homepage:
- Size: 2.27 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# openfaas-cnb 
Clound Native Buildpack for [OpenFaaS](https://www.openfaas.com/)
## Getting started
### Usage
This buildpack is currently intended to be used with the heroku builder [heroku/pack:18](https://github.com/heroku/pack-images) via [`pack`](https://github.com/buildpacks/pack).
#### Configuration
An _optional_ `watchdog.toml` configuration file may be present at the application root:
```toml
[watchdog]
# The watchdog version to use.
# See https://github.com/openfaas-incubator/of-watchdog/releases
# (default: 0.7.6)
version = "0.7.6"# The cloud native buildpack process type to run.
# See `pack inspect-image `
# (default: web)
process_type = "web"
```#### Build your app
```shell script
pack build my-app \
--builder heroku/buildpacks:18 \
--buildpack from=builder \
--buildpack jar013/openfaas-cnb:latest \
--path .
```### Building
```shell script
make build
```### Testing (End-to-End)
Run end-to-end test using [`pack`](https://github.com/buildpacks/pack).
```shell script
make test-e2e
```### Packaging
Creates a portable `.tgz` format of this buildpack.
```shell script
make package-tgz
```Creates a distributable buildpack image.
```shell script
make package-image
```#### Troubleshooting
```shell script
pack build ... -e BP_DEBUG=true
```