Skip to content

Commit

Permalink
docs: typo and remove unused cli param
Browse files Browse the repository at this point in the history
Signed-off-by: Malo Polese <[email protected]>
  • Loading branch information
MaloPolese committed May 11, 2023
1 parent e2b5b55 commit 05d5485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions docs/src/reference/riklet.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Faas Configuration

**Prerequisite**: You need firecracker in yout PATH.
**Prerequisite**: You need firecracker in your PATH.

Here is a list of **required** environment variables to run riklet:

Expand All @@ -14,15 +14,13 @@ Here is a list of **required** environment variables to run riklet:
| `IFACE_IP` | IP of the Network interface connected to the internet | "" |
| `FIRECRACKER_LOCATION` | Path to the firecracker binary | "" |
| `KERNEL_LOCATION` | Path to the kernel location | "" |
| `SCRIPT_LOCATION` | Path to the [script](https://github.com/polyxia-org/rik/blob/main/scripts/setup-host-tap.sh) that create tap interface. | "" |

To run riklet with FAAS configuration.

```bash
sudo riklet --kernel-path ${KERNEL_LOCATION} \
--ifnet ${IFACE} \
--ifnet-ip ${IFACE_IP} \
--script-path ${SCRIPT_LOCATION}
```

> The firecracker binary location is determined by the following order:
Expand Down
7 changes: 2 additions & 5 deletions riklet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER='sudo -E' cargo run --bin riklet

### Faas Usage

**Prerequisite**: You need firecracker in yout PATH.
**Prerequisite**: You need firecracker in your PATH.

Here is a list of **required** environment variables to run riklet:

Expand All @@ -49,15 +49,13 @@ Here is a list of **required** environment variables to run riklet:
| `IFACE_IP` | IP of the Network interface connected to the internet | "" |
| `FIRECRACKER_LOCATION` | Path to the firecracker binary | "" |
| `KERNEL_LOCATION` | Path to the kernel location | "" |
| `SCRIPT_LOCATION` | Path to the [script](https://github.com/polyxia-org/rik/blob/main/scripts/setup-host-tap.sh) that create tap interface. | "" |

To run riklet with FAAS configuration.

```bash
sudo riklet --kernel-path ${KERNEL_LOCATION} \
--ifnet ${IFACE} \
--ifnet-ip ${IFACE_IP} \
--script-path ${SCRIPT_LOCATION}
```

> The firecracker binary location is determined by the following order:
Expand All @@ -71,8 +69,7 @@ Exemple:
```bash
sudo riklet --kernel-path ./vmlinux.bin \
--ifnet wlp2s0 \
--ifnet-ip 192.168.1.84 \
--script-path ./scripts/setup-host-tap.sh
--ifnet-ip 192.168.1.84
```

You should see something like that :
Expand Down

0 comments on commit 05d5485

Please sign in to comment.