You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-13Lines changed: 10 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ tinyFaaS is a lightweight FaaS (Function-as-a-Service) platform for edge environ
4
4
5
5
## Research
6
6
7
-
To use tinyFaaS in the version used in the paper mentioned above, use `git checkout v0.1`.
7
+
To use tinyFaaS in the version used in our paper, use `git checkout v0.1`.
8
8
If you use this software in a publication, please cite it as:
9
9
10
10
### Text
@@ -44,24 +44,21 @@ In order to run tinyFaaS, the management service has to be deployed.
44
44
It will then automatically start the reverse proxy.
45
45
Once a function is deployed to tinyFaaS, function handlers are created automatically.
46
46
47
-
### Getting Started
47
+
### Prerequisites
48
48
49
49
Before you get started, make sure you have the following dependencies installed:
50
50
51
51
- Go (>=v1.20) to compile management service and reverse proxy
52
52
- Docker (>=v24)
53
53
- Make
54
54
55
-
Note that this only works on Linux.
56
-
57
-
To get started, build the management service and reverse proxy:
55
+
Note that tinyFaaS is intended for Linux hosts (`x86_64` and `arm64`).
56
+
Due to limitations of Docker Desktop for Mac, installing and running [`docker-mac-net-connect`](https://github.com/chipmk/docker-mac-net-connect) is necessary to run tinyFaaS on macOS hosts.
57
+
Running tinyFaaS on Windows computers (native or through WSL) is probably possible but has not been tested and is thus not recommended.
58
58
59
-
```sh
60
-
make manager
61
-
make rproxy
62
-
```
59
+
### Getting Started
63
60
64
-
Then start tinyFaaS with:
61
+
Start tinyFaaS with:
65
62
66
63
```sh
67
64
make
@@ -106,7 +103,7 @@ This method must accept a string as an input (that can also be `None`) and must
106
103
You may also provide a `requirements.txt` file from which dependencies will be installed alongside your function.
107
104
Any other data you provide will be available.
108
105
109
-
To get started with this type of function, use the example `echo` function in [`./tests/fns/echo`](./tests/fns/echo).
106
+
To get started with this type of function, use the example `echo` function in [`./test/fns/echo`](./tests/fns/echo).
110
107
111
108
#### Binary
112
109
@@ -115,7 +112,7 @@ This shell script may also call other binaries as needed.
115
112
Input data is provided from `stdin`.
116
113
Output responses should be provided on `stdout`.
117
114
118
-
To get started with this type of function, use the example `echo-binary` function in [`./tests/fns/echo-binary`](./tests/fns/echo-binary).
115
+
To get started with this type of function, use the example `echo-binary` function in [`./test/fns/echo-binary`](./tests/fns/echo-binary).
119
116
120
117
### Calling Functions
121
118
@@ -124,7 +121,7 @@ Different protocols are useful for different use-cases: CoAP for lightweight com
124
121
125
122
#### CoAP
126
123
127
-
To call a tinyFaaS function using its CoAP endpoint, make a GET or POST request to`coap://{HOST}:{PORT}/{NAME}` where `{HOST}` is the address of the tinyFaaS host, `{PORT}` is the port for the tinyFaaS CoAP endpoint (default is `5683`), and `{NAME}` is the name of your function.
124
+
To call a tinyFaaS function using its CoAP endpoint, make a GET or POST request to`coap://{HOST}:{PORT}/{NAME}` where `{HOST}` is the address of the tinyFaaS host, `{PORT}` is the port for the tinyFaaS CoAP endpoint (default is `5683`), and `{NAME}` is the name of your function.
128
125
You may include data in any form you want, it will be passed to your function.
129
126
130
127
Unfortunately, [`curl` does not yet support CoAP](https://curl.se/mail/lib-2018-05/0017.html), but [a number](https://github.com/coapjs/coap-cli)[of other](https://aiocoap.readthedocs.io/en/latest/tools.html)[tools are available](https://fitbit.github.io/golden-gate/tools/coap_client.html).
0 commit comments