openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
276 stars 228 forks source link

Failed to pull new customized template #206

Closed kylinxiang70 closed 4 years ago

kylinxiang70 commented 4 years ago

There is no detailed docs for customize a template step by step. I made a custom template modeled after java8 template.

I follow the contribution guide to install my own template, an error was encountered:

[root@k8s-master openfaas]#  faas template pull https://github.com/kylin1994/openfaas-springboot-tmp
Fetch templates from repository: https://github.com/kylin1994/openfaas-springboot-tmp at master
2020/05/30 15:11:53 Attempting to expand templates from https://github.com/kylin1994/openfaas-springboot-tmp
Error while fetching templates: can't find templates in: /tmp/openFaasTemplates817545317

Your Environment

Server: Docker Engine - Community Engine: Version: 19.03.9 API version: 1.40 (minimum version 1.12) Go version: go1.13.10 Git commit: 9d988398e7 Built: Fri May 15 00:24:05 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683

* Are you using Docker Swarm or Kubernetes (FaaS-netes)?

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:56:40Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:48:36Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

* faas version:

CLI: commit: f7c29ea19b5df9d7aa87e9c70aacf4d9315da2cd version: 0.12.4

Gateway uri: http://127.0.0.1:31112 version: 0.18.17 sha: 18f6c720b50db7da5f9c410f9fd3369ed7aff379 commit: Extract a caching function_query type

Provider name: faas-netes orchestration: kubernetes version: 0.10.5 sha: 9be50543b372381a505e9e54a1356bb076c8f01f

kylinxiang70 commented 4 years ago

I was fixed this issue.

The structure of the template project must be like this:

your-templates-repo └── template └── your-language