Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ineat/ineat-openfaas-article-2-development
https://github.com/ineat/ineat-openfaas-article-2-development
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ineat/ineat-openfaas-article-2-development
- Owner: ineat
- Created: 2019-02-24T10:07:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-09T10:01:38.000Z (almost 6 years ago)
- Last Synced: 2024-11-07T11:44:32.344Z (about 2 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# OpenFaas on Docker Swarm Tutorial, article 2
This project contains source code of any functions described on the following link[Functions development with OpenFaas](url)
## How build and deploy ineat-openfaas-calculator
> Enter you login/password with the following command :
```shell
cat ~/faas_pass.txt | faas-cli login -g http://CLUSTER_IP_ADDRESS:8080 -u admin --password-stdin
```> To build function, go to root of ineat-openfaas-calculator and enter :
```shell
faas-cli build -f ineat-openfaas-calculator.yml
```> To deploy :
```shell
faas-cli deploy -f ineat-openfaas-calculator.yml
```## Import Mongo Data Base
> To follow the second part of the tutorial, you need a Mongo Data Base. This project contains a dump of my own data base. You can import with :
```shell
mongorestore -d moviesDB moviesDB_dump
```## How build and deploy ineat-openfaas-get-movies and ineat-openfaas-post-movie
> Enter you login/password with the following command :
```shell
cat ~/faas_pass.txt | faas-cli login -g http://CLUSTER_IP_ADDRESS:8080 -u admin --password-stdin
```> To build and deploy function ineat-openfaas-get-movies, go to the root of corresponding folder and enter :
```shell
faas-cli build -f ineat-openfaas-get-movies.yml && faas-cli deploy -f ineat-openfaas-get-movies.yml
```> To build and deploy function ineat-openfaas-post-movie, go to the root of corresponding folder and enter :
```shell
faas-cli build -f ineat-openfaas-post-movie.yml && faas-cli deploy -f ineat-openfaas-post-movie.yml
```