Skip to content

Commit bf64898

Browse files
committed
Remove armhf templates and move to multi-arch / buildx
Migrate as per the python3 template in the classic Go templates, where a separate -armhf/-arm64 template is not required and TARGETPLATFORM is introduced for use with buildkit / buildx and faas-cli publish. Tested with an RPi with a 32-bit OS and with a 64-bit ARM OS (Ubuntu 20.04). Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent e4f4f42 commit bf64898

File tree

22 files changed

+14
-379
lines changed

22 files changed

+14
-379
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@ The Python Flask templates that make use of the incubator project [of-watchdog](
55

66
Templates available in this repository:
77

8-
- python27-flask
8+
- python3-http
9+
- python3-http-debian (ideal for compiled dependencies like numpy, pandas, pillow)
10+
911
- python3-flask
10-
- python3-flask-debian
11-
- python3-flask-armhf
12+
- python3-flask-debian (ideal for compiled dependencies like numpy, pandas, pillow)
1213

13-
- python3-http
14-
- python3-http-debian
15-
- python3-http-armhf
14+
- python27-flask (Python 2.7 is deprecated)
1615

1716
Notes:
18-
- To build and deploy a function for Raspberry Pi or ARMv7 in general, use the language templates ending in *-armhf*
17+
- To build and deploy a function for an ARM computer, you'll need to use `faas-cli publish --platforms`
1918

2019
## Picking your template
2120

template/python3-flask-armhf/Dockerfile

Lines changed: 0 additions & 54 deletions
This file was deleted.

template/python3-flask-armhf/function/__init__.py

Whitespace-only changes.

template/python3-flask-armhf/function/handler.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

template/python3-flask-armhf/function/handler_test.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

template/python3-flask-armhf/function/requirements.txt

Whitespace-only changes.

template/python3-flask-armhf/function/tox.ini

Lines changed: 0 additions & 41 deletions
This file was deleted.

template/python3-flask-armhf/index.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

template/python3-flask-armhf/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

template/python3-flask-armhf/template.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)