pi@raspberrypi:~/functions$ faas-cli build -f ./hello-python.yml
[0] > Building hello-python.
Clearing temporary build folder: ./build/hello-python/
Preparing: ./hello-python/ build/hello-python/function
Building: hello-python:latest with python template. Please wait..
Sending build context to Docker daemon 8.192kB
Step 1/31 : FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.1.5 as watchdog
---> c164772f02dd
Step 2/31 : FROM --platform=${TARGETPLATFORM:-linux/amd64} python:2.7-alpine
---> 8579e446340f
Step 3/31 : ARG TARGETPLATFORM
---> Using cache
---> e40c331bb33c
Step 4/31 : ARG BUILDPLATFORM
---> Using cache
---> 0ca2b901990e
Step 5/31 : ARG ADDITIONAL_PACKAGE
---> Using cache
---> 73a95adc61dd
Step 6/31 : COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
---> Using cache
---> b682e77f1960
Step 7/31 : RUN chmod +x /usr/bin/fwatchdog
---> Running in ccd04dabff43
standard_init_linux.go:219: exec user process caused: exec format error
The command '/bin/sh -c chmod +x /usr/bin/fwatchdog' returned a non-zero code: 1
[0] < Building hello-python done in 3.04s.
[0] Worker done.
Total build time: 3.04s
Errors received during build:
- [hello-python] received non-zero exit code from build, error: The command '/bin/sh -c chmod +x /usr/bin/fwatchdog' returned a non-zero code: 1
版本号是:
pi@raspberrypi:~/functions$ faas version
___ _____ ____
/ _ \ _ __ ___ _ __ | ___|_ _ __ _/ ___|
| | | | '_ \ / _ \ '_ \| |_ / _` |/ _` \___ \
| |_| | |_) | __/ | | | _| (_| | (_| |___) |
\___/| .__/ \___|_| |_|_| \__,_|\__,_|____/
|_|
CLI:
commit: 2cec97955a254358de5443987bedf8ceee272cf8
version: 0.13.9
Gateway
uri: http://127.0.0.1:8080
version: 0.18.18
sha: 11ff356ccea32b89b9da556c18305cd7c5ea9ba5
Provider
name: faas-swarm
orchestration: swarm
version: 0.9.0
sha: e7e845461aa467c0705fe351b6caa025b1abc2ae