-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
faas-cli build to select architecture automatically #176
Comments
Derek add label: proposal |
We haven't done this yet because we didn't have a good / standard way of doing it. Don't want to really end up managing this in the project if possible. Multi-arch builds may solve this.. worth re-visting when Alpine Linux is multi-arch (currently blocked). |
Derek add label: revisit |
I do have a way of doing it on Linux, but I must admit I hadn't considered anything outside of arm, arm64 and amd64 (only architectures I have access to) |
Which architectures do you need? I think two is enough to come up with a solution. I'm going to close this issue but mark it as revisit when multi-arch support is finished by Docker Inc. |
Provide a mechanism for FaaS CLI / Docker to detect CPU type and attempt to build Dockerfile.{cputype} if exists, with fallback to Dockerfile.
Expected Behaviour
This is an improvement AFAIK, I've not been able to find anywhere that mentions how to do this. I was going to have a cascade from
Dockerfile.$(arch)
(most specific)Dockerfile.$(arch-short)
(semi-generic) to the defaultDockerfile
Current Behaviour
When I build, it looks like Dockerfile.armhf needs to be named Dockerfile
Possible Solution
I was going to code a build utility with tests that provides either
docker build $(args) . -t
Steps to Reproduce (for bugs)
Not a bug
Context
This issue is raised as it's really messing with my laziness, and after checking, it looks like I just imagined docker handled this (not sure why)
Your Environment
Docker version
docker version
:Are you using Docker Swarm or Kubernetes (FaaS-netes)?
docker-swarm
Operating System and version (e.g. Linux, Windows, MacOS):
Linux
Link to your project or a code example to reproduce issue: N/A
The text was updated successfully, but these errors were encountered: