You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry that my faas friday contribution is an issue, but, at least it has a workaround! 🤙
The error indicates pytest is failing. I am sharing detailed logs below after doing faas-cli template pull and creating a new function to do this test.
Expected Behaviour
This should should pass for a newly generated function:
I made this change to the template on my local machine, as a test, because I noticed armhf/python:3.6 is deprecated - and was pleasantly surprised arm32v7/python:3.6-alpine worked.
# I commented this out
# FROM armhf/python:3.6-alpine
FROM arm32v7/python:3.6-alpine
Steps to Reproduce (for bugs)
faas-cli template store pull python3-http get the python3-http templates, if you haven't
faas-cli new testbot --lang python3-http-armhf to build a new testbot function
faas-cli publish -f testbot.yml --platforms linux/arm/v7 to try building it
Context
I am doing development on my Raspberry Pi k3s netbooting cluster running at home, switched my images to armhf, and bumped into this issue.
Changing the local template for python3-http-armhf is a good short term solution. Long term, I'm not sure if this impacts more people, and if there's something I can do to help.
I'll share on Slack to see what folks are seeing. 💯
Your Environment
FaaS-CLI version ( Full output from: faas-cli version ): CLI:
# new base image, replacing FROM armhf/python:3.6-alpine
FROM python:3.8.11-slim-buster
# Add non root user
RUN addgroup --system app
RUN APPGROUPID=$(getent group app | cut -d: -f3)
RUN adduser --system --group $APPGROUPID app
I had to add the user to the group over a series of 3 lines, instead of 1, because I needed to capture the GID.
It works on on Raspberry Pi k3s cluster. Let me know if you'd like me to submit a PR, any changes, and test on x86_64 too?
My actions before raising this issue
I'm sorry that my
faas friday
contribution is an issue, but, at least it has a workaround! 🤙The error indicates
pytest
is failing. I am sharing detailed logs below after doingfaas-cli template pull
and creating a new function to do this test.Expected Behaviour
This should should pass for a newly generated function:
Current Behaviour
The publish command fails with the following errors from Docker:
Possible Solution
I made this change to the template on my local machine, as a test, because I noticed armhf/python:3.6 is deprecated - and was pleasantly surprised
arm32v7/python:3.6-alpine
worked.Steps to Reproduce (for bugs)
faas-cli template store pull python3-http
get the python3-http templates, if you haven'tfaas-cli new testbot --lang python3-http-armhf
to build a new testbot functionfaas-cli publish -f testbot.yml --platforms linux/arm/v7
to try building itContext
I am doing development on my Raspberry Pi k3s netbooting cluster running at home, switched my images to
armhf
, and bumped into this issue.Changing the local template for
python3-http-armhf
is a good short term solution. Long term, I'm not sure if this impacts more people, and if there's something I can do to help.I'll share on Slack to see what folks are seeing. 💯
Your Environment
faas-cli version
): CLI:docker version
(e.g. Docker 17.0.05 ):Are you using Docker Swarm or Kubernetes (FaaS-netes)?
Kubernetes
Operating System and version (e.g. Linux, Windows, MacOS):
Code example or link to GitHub repo or gist to reproduce problem:
shared above, let me know if more is needed?
Other diagnostic information / logs from troubleshooting guide
the function builds with my workaround, and runs in OpenFaas.
Next steps
Let's talk. I hope I am doing something wrong.
You may join Slack for community support.
The text was updated successfully, but these errors were encountered: