Skip to content

Commit e236ae7

Browse files
committed
Show --platforms for faas-cli publish with --remote-builder
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 852a532 commit e236ae7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/openfaas-pro/builder.md

+10
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ faas-cli publish --remote-builder http://127.0.0.1:8081/build \
8484
--payload-secret $HOME/.openfaas/payload.txt
8585
```
8686

87+
The `--platforms` flag also works for cross-compilation, or multi-arch builds:
88+
89+
```bash
90+
faas-cli publish --remote-builder http://
91+
--platforms "linux/amd64,linux/arm64" \
92+
--payload-secret $HOME/.openfaas/payload.txt
93+
```
94+
8795
To deploy the image that you've just built:
8896

8997
```bash
@@ -271,6 +279,8 @@ You may need to enable build arguments for the Dockerfile, these can be passed t
271279

272280
You may wish to cross-compile a function to run on an arm64 host, if so, you can provide a `platform` key in the configuration file.
273281

282+
You will need to make sure your Dockerfile uses the proper syntax, the official templates are a good reference if you need guidance, otherwise reach out to our team if you get stuck.
283+
274284
The below will build an image for arm64 only and must be deployed only to an arm64 host using OpenFaaS Profiles to ensure it is scheduled correctly to an arm64 host.
275285

276286
```json

0 commit comments

Comments
 (0)