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

Dapr microservices tutorial ARM image support #1046

Open
kendallroden opened this issue Feb 15, 2024 · 1 comment
Open

Dapr microservices tutorial ARM image support #1046

kendallroden opened this issue Feb 15, 2024 · 1 comment
Labels

Comments

@kendallroden
Copy link

kendallroden commented Feb 15, 2024

I am assuming the image that is used for the radius Dapr microservices tutorial is compiled to run on AMD machines- if you have an M1 mac you will have issues because the code container is failing to execute as it is not compatible with the ARM cluster I am running on Kind.

I would propose that there be an image tag for platform compilation. I will try the workaround of building and pushing my own image, but I am guessing others might run into this problem if they are using a local cluster on M1 mac

AB#11198

@kendallroden kendallroden changed the title Dapr microservices tutorial Dapr microservices tutorial ARM image support Feb 15, 2024
@kendallroden
Copy link
Author

kendallroden commented Feb 15, 2024

I confirmed that was the problem. Second problem is the base image used by the frontend app:

Dockerfile:1

1 | >>> FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS build
2 | WORKDIR /src
3 |

ERROR: failed to solve: mcr.microsoft.com/dotnet/sdk:5.0-alpine: no match for platform in manifest: not found

I modified the dockerfile accordingly

FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src

COPY *.csproj .
RUN dotnet restore -r linux-arm64

COPY . .
RUN dotnet publish -c release -o /output/ --no-restore -r linux-arm64

FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app
COPY --from=build /output ./
ENTRYPOINT ["dotnet", "ui.dll"]

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

No branches or pull requests

2 participants