Skip to content

Commit 0131061

Browse files
committed
Backport comment to Swarm instructions
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent d990cfb commit 0131061

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/deployment/docker-swarm.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,23 @@ $ git clone https://github.com/openfaas/faas && \
5656
!!! info
5757
As of OpenFaaS 0.8.6 basic authentication will be enabled by default when running ./deploy\_stack.sh. If you need to disable it pass the flag `--no-auth` to the ./deploy_stack.sh script as above.
5858

59-
### 2.0.1 Raspberry Pi / 32-bit ARM
59+
### 2.0.1 Raspberry Pi / 32-bit ARM (armhf)
6060

6161
> For a complete tutorial on setting up OpenFaaS for Raspberry Pi / 32-bit ARM using Docker Swarm see the following blog post from Alex Ellis: [Your Serverless Raspberry Pi cluster with Docker](https://blog.alexellis.io/your-serverless-raspberry-pi-cluster/).
6262
63-
When creating new functions please use the templates with a suffix of `-armhf` such as `go-armhf` and `python-armhf` to ensure you get the correct versions for your devices.
63+
When creating new functions you will need to run the build on an armhf host.
6464

65-
> Note: you cannot deploy the sample functions to ARM devices, but you can use the function store in the gateway UI or via `faas-cli store list --yaml https://raw.githubusercontent.com/openfaas/store/master/store-armhf.json`
65+
> Note: expert users can create or use [multi-arch templates](https://github.com/alexellis/multiarch-templates) which can build on a PC and deploy to an armhf host.
66+
67+
* You can run `faas-cli deploy` from any computer using `--gateway` or `OPENFAAS_GATEWAY`
68+
* But you must build Docker images on a Raspberry Pi, not on your PC or laptop.
69+
70+
For the Function Store, use the following:
71+
72+
```bash
73+
faas-cli store list --platform armhf
74+
faas-cli store deploy NAME
75+
```
6676

6777
### 2.1 Store your admin credentials
6878

0 commit comments

Comments
 (0)