mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-24 16:16:07 +00:00
891 B
891 B
This is following part of OpenFaaS tempalte Readme. This template is based on clearlinux:base image.
dockerfile-clearlinux
- Create a function named hello-openfass
faas-cli new --lang dockerfile-clearlinux hello-openfaas --prefix="<your-docker-username-here>"
Files tree as below.
├── hello-openfaas
│ ├── bundles.txt
│ └── Dockerfile
├── hello-openfaas.yml
└── template
* Put the required Clear Linux bundles in the "bundles.txt".
For example,
`echo "openblas" >> hello-openfaas/bundles.txt`
`echo "wget" >> hello-openfaas/bundles.txt`
- Deploy function
faas-cli up -f hello-openfaas.yml
Then you can invoke your function by OpenFaas UI or faas-cli.