PiperCI Echo Function¶
Table of Contents¶
It is recommended that you test and develop this function using the
tox -e unittest tests which simulate an OpenFaaS environment.
To create a development OpenFaaS environment follow the PiperCI Installation Guide
tox -e lint,unittest
The scripts in tools/scripts manage installation of tooling needed to
run tests and simulate a working OpenFaaS PiperCI environment so you can
get down to the business of developing your function. As mentioned
earlier use the entry point
tox -e unittest for all your FaaS
functions which will download and install the template and extract the
components into a tox build environment and then run the tests.
You may also activate and use the tox virtualenv while developing your
Deploying to OpenFaaS Manually¶
To deploy this function to OpenFaaS do the following after authentication:
git clone https://gitlab.com/dreamer-labs/piperci/piperci-echo-faas.git cd piperci-echo-faas faas-cli template pull https://gitlab.com/dreamer-labs/piperci/piperci-faas-templates faas build faas deploy
To validate that your function installed correctly you can run the following:
Please read CONTRIBUTING for details on our code of conduct, and the process for submitting merge requests to us.