Skip to content
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

M1 mac failed to install feature azure-function-core-tools #7

Closed
juliays opened this issue Mar 20, 2023 · 1 comment
Closed

M1 mac failed to install feature azure-function-core-tools #7

juliays opened this issue Mar 20, 2023 · 1 comment

Comments

@juliays
Copy link

juliays commented Mar 20, 2023

Hi, I have an M1 Macbook. I'm not able to have the azure-fuction-core-tools installed when building a dev container. Is there a linux arm build of the azure-function-core-tools ? Thanks!

Here is the error -

#16 3.928 E: Unable to locate package azure-functions-core-tools
#16 3.930 ERROR: Feature "Azure Functions Core Tools" (ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/azure-functions-core-tools for help troubleshooting this error.
```-

Here is the devcontainer.json I'm using - 

```json
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/java
{
    "name": "Java", 
    // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile    
    "image": "mcr.microsoft.com/vscode/devcontainers/java:11",
    "features": {
        "ghcr.io/devcontainers/features/java:1.2.1": {
            "version": "11",
            "installMaven": "true",
            "installGradle": "true",
            "jdkVersion" : "11",
            "jdkDistro" : "open"
        },
        "ghcr.io/devcontainers/features/azure-cli:1": {},
        "ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools:1": {
            "version":"latest"
        }
    },
    // Use 'forwardPorts' to make a list of ports inside the container available locally.    
    // "forwardPorts": [],    
    // Use 'postCreateCommand' to run commands after the container is created.    
    "postCreateCommand": "java -version",
    // Configure tool-specific properties.    
    // "customizations": {},    
    //Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.   
    "remoteUser": "root"
}
@jlaundry
Copy link
Owner

Hey @juliays, sorry but Microsoft haven't released Linux arm64 support: Azure/azure-functions-core-tools#3112

On the positive side, once they do, this devcontainer feature will work without modification - the install script already supports non-arm64 architectures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants