{"id":13840262,"url":"https://github.com/johnmccabe/openfaas-cnab","last_synced_at":"2026-02-26T19:43:14.331Z","repository":{"id":73913203,"uuid":"160435621","full_name":"johnmccabe/openfaas-cnab","owner":"johnmccabe","description":"OpenFaaS Duffle CNAB Packing","archived":false,"fork":false,"pushed_at":"2018-12-05T00:51:27.000Z","size":1025,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T07:59:40.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnmccabe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-12-05T00:15:34.000Z","updated_at":"2022-04-03T21:59:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b25d87cf-31ab-4a99-a751-c3dbfd59e55d","html_url":"https://github.com/johnmccabe/openfaas-cnab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnmccabe/openfaas-cnab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fopenfaas-cnab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fopenfaas-cnab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fopenfaas-cnab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fopenfaas-cnab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnmccabe","download_url":"https://codeload.github.com/johnmccabe/openfaas-cnab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fopenfaas-cnab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29868992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:00:44.545Z","updated_at":"2026-02-26T19:43:14.316Z","avatar_url":"https://github.com/johnmccabe.png","language":"Dockerfile","funding_links":[],"categories":["Community-Projects"],"sub_categories":["Docker-App"],"readme":"# OpenFaaS CNAB Duffle Packaging\n\nThis repo packages up [OpenFaaS](https://github.com/openfaas/faas) for Docker Swarm as a [CNAB Bundle](https://github.com/deislabs/cnab-spec/) using the [duffle](https://github.com/deislabs/duffle) CNAB installer.\n\n- https://open.microsoft.com/2018/12/04/announcing-cnab-cloud-agnostic-format-packaging-running-distributed-applications/\n- https://techcrunch.com/2018/12/04/microsoft-and-docker-team-up-to-make-packaging-and-running-cloud-native-applications-easier/\n\n![Installing OpenFaaS with Duffle](images/duffle_openfaas.gif \"Installing OpenFaaS with Duffle\")\n\nAs I don't yet have access to a public CNAB repo to publish the bundle to you will have to build locally - I'll update as soon as one becomes available (this repo may also subsequently move under the [openfaas-incubator](https://github.com/openfaas-incubator) org)\n\nAlso it sounds like it should be possible to target multiple orchestrators with a single bundle, should that prove possible I'll merge the Kubernetes install here as well.\n\nI think CNAB has lots of potential !! A few rough edges right now but its very new and has the backing of both [Docker](https://github.com/docker) and [Microsoft](https://github.com/microsoft) with some of the core [Helm](https://github.com/helm) contributors heavily involved.\n\n## Prerequisites\n\n- Install Duffle as described in their [repo](https://github.com/deislabs/duffle).\n- Docker running in Swarm mode.\n\n## Building the CNAB Bundle\n\n- Clone this repo and `cd` into it.\n\n      git clone https://github.com/johnmccabe/openfaas-cnab.git`\n      cd openfaas-cnab\n\n- Build the CNAB bundle with `duffle`\n\n      duffle build\n\n## Installing OpenFaaS from CNAB Bundle\n\n- Create Basic Auth credentials used to secure the API/UI (note that other mechanisms for securing OpenFaaS exist, I'm just including the basic option at the moment).\n\n      duffle creds generate dev-creds johnmccabe/openfaas:0.9.7\n\n- Install OpenFaaS (you can optionally disable auth by passing `--set basic_auth=false` to `duffle install`)\n\n      duffle install openfaas johnmccabe/openfaas:0.9.7 -c dev-creds\n\n- View the installed app and check the status of OpenFaaS\n\n      duffle list\n      duffle status openfaas -c dev-creds\n\n- You can now proceed to login and use OpenFaaS (see the [docs](https://docs.openfaas.com) for guidance)\n\n      faas login\n      faas store deploy figlet\n      echo HelloWorld | faas invoke figlet\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnmccabe%2Fopenfaas-cnab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnmccabe%2Fopenfaas-cnab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnmccabe%2Fopenfaas-cnab/lists"}