Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

retgits/openfaas-artifactory-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFaaS & Artifactory Sample

A small OpenFaaS app built in Go, that uses JFrog Artifactory as Docker registry

Run the app

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

Invoke the function

To invoke the deployed function run

echo "Hello World!" | faas-cli invoke hello-openfaas

License

See the LICENSE file in the repository

Releases

No releases published

Packages

No packages published