Skip to content

Commit c6f0584

Browse files
committed
add note on how to use tinyFaaS on macos
1 parent 7b264c8 commit c6f0584

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
./manager
2-
./rproxy
1+
manager
2+
rproxy
3+
tmp/
34

45
# Created by https://www.toptal.com/developers/gitignore/api/python,node,go,visualstudiocode
56
# Edit at https://www.toptal.com/developers/gitignore?templates=python,node,go,visualstudiocode

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tinyFaaS is a lightweight FaaS (Function-as-a-Service) platform for edge environ
44

55
## Research
66

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`.
88
If you use this software in a publication, please cite it as:
99

1010
### Text
@@ -44,24 +44,21 @@ In order to run tinyFaaS, the management service has to be deployed.
4444
It will then automatically start the reverse proxy.
4545
Once a function is deployed to tinyFaaS, function handlers are created automatically.
4646

47-
### Getting Started
47+
### Prerequisites
4848

4949
Before you get started, make sure you have the following dependencies installed:
5050

5151
- Go (>=v1.20) to compile management service and reverse proxy
5252
- Docker (>=v24)
5353
- Make
5454

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.
5858

59-
```sh
60-
make manager
61-
make rproxy
62-
```
59+
### Getting Started
6360

64-
Then start tinyFaaS with:
61+
Start tinyFaaS with:
6562

6663
```sh
6764
make
@@ -106,7 +103,7 @@ This method must accept a string as an input (that can also be `None`) and must
106103
You may also provide a `requirements.txt` file from which dependencies will be installed alongside your function.
107104
Any other data you provide will be available.
108105

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).
110107

111108
#### Binary
112109

@@ -115,7 +112,7 @@ This shell script may also call other binaries as needed.
115112
Input data is provided from `stdin`.
116113
Output responses should be provided on `stdout`.
117114

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).
119116

120117
### Calling Functions
121118

@@ -124,7 +121,7 @@ Different protocols are useful for different use-cases: CoAP for lightweight com
124121

125122
#### CoAP
126123

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.
128125
You may include data in any form you want, it will be passed to your function.
129126

130127
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

Comments
 (0)