my kubernetes is based on arm,with kubernetes1.22.4
my faas-cli command:
faas-cli build -f ./add.yml the response code :
[0] > Building add. Clearing temporary build folder: ./build/add/ Preparing: ./add/ build/add/function Building: myw/add:latest with python template. Please wait.. Sending build context to Docker daemon 8.192kB Step 1/31 : FROM --platform=${TARGETPLATFORM:-linux/amd64} as watchdog ---> 6f97aa96da81 Step 2/31 : FROM --platform=${TARGETPLATFORM:-linux/amd64} python:2.7-alpine ---> 8579e446340f Step 3/31 : ARG TARGETPLATFORM ---> Using cache ---> a75f5a062540 Step 4/31 : ARG BUILDPLATFORM ---> Using cache ---> c90a8309e851 Step 5/31 : ARG ADDITIONAL_PACKAGE ---> Using cache ---> 4ee3e6fab2a3 Step 6/31 : COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog ---> Using cache ---> 33d972637c65 Step 7/31 : RUN chmod +x /usr/bin/fwatchdog ---> Running in 6204e8546454 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 add done in 0.54s. [0] Worker done. Total build time: 0.54s Errors received during build: - [add] received non-zero exit code from build, error: The command '/bin/sh -c chmod +x /usr/bin/fwatchdog' returned a non-zero code: 1 then can someone tell me the currect way to build a function with arm in openfaas,and why this happened,did i do someting wrong?
5Related questions 2 (400) Bad Request when deploying a Function App via ARM 2 How to create k8s deployment file which will deploy based on architecture 3 Getting ImageInspectError when trying to run an OpenFaas function on Raspberry Pi 3B+ Related questions 2 (400) Bad Request when deploying a Function App via ARM 2 How to create k8s deployment file which will deploy based on architecture 3 Getting ImageInspectError when trying to run an OpenFaas function on Raspberry Pi 3B+ 2 How to deploy Azure Function app including code using ARM template from Azure marketplace 1 How to create an Azure AKS service through ARM Template 0 How to deploy azure function app code along with ARM template in VSTS 1 Deploy Azure Function with ARM template 0 How to Create Azure Kubernetes Service (AKS) using ARM Templates 0 Enable Continuous Deployment on Linux Container-based function app using ARM Template in Azure 1 Installing OpenFaas on local Kubernetes cluster Load 7 more related questions Show fewer related questions
Reset to default