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

dreamteamrepos/piperci-noop-faas

Repository files navigation

PiperCI Noop Function

Build Status

Table of Contents

Getting Started

To deploy this function you must have OpenFaaS installed. To create a development environment see (https://github.com/AFCYBER-DREAM/ansible-collection-pidev)

Prerequisites

OpenFaaS

Installing

To install this function on OpenFaaS do the following after authentication:

git clone https://github.com/AFCYBER-DREAM/piperci-noop-faas.git
cd piperci-noop-faas
faas build
faas deploy

To validate that your function installed correctly you can run the following:

faas ls

Inputs and Outputs

Running the tests

tox -e lint

Test Prerequisites

Tox must be installed and an OpenFaaS environment must be available locally. You must also deploy the image to OpenFaaS.

There is an simple bash script which can be used to turn a local machine into an OpenFaaS development environment. This can be found in tools/scripts/setup-env.sh. This is the script that is being used by Travis-CI to deploy the test environment.

We also have an ansible role available to setup the OpenFaaS environment. This can be found here

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

MIT