A small OpenFaaS app built in Go, that uses JFrog Artifactory as Docker registry
To run the app, assuming you have OpenFaaS and the faas-cli installed, you'll need to update the hello-openfaas.yml
on:
- Line 3: Make sure this matches your OpenFaaS gateway URL (port 31112 is the default gateway port for OpenFaaS)
- Line 8: Make sure this matches
<artifactory host>:<port>/<docker repository>/hello-openfaas:latest
(docker
is the default name of an Artifactory repository for Docker images)
To run you'll need two commands
docker login <artifactory host>:<port>
faas-cli up -f hello-openfaas.yml
To invoke the deployed function run
echo "Hello World!" | faas-cli invoke hello-openfaas
See the LICENSE file in the repository