Azure-Samples / Serverless-microservices-reference-architecture

This reference architecture walks you through the decision-making process involved in designing, developing, and delivering a serverless application using a microservices architecture through hands-on instructions for configuring and deploying all of the architecture's components along the way. The goal is to provide practical hands-on experience in working with several Azure services and the technologies that effectively use them in a cohesive and unified way to build a serverless-based microservices architecture.
MIT License
494 stars 258 forks source link

docker images used by azure-functions-dotnet-core2.0 are outdated #102

Open odidev opened 1 year ago

odidev commented 1 year ago

@khaledhikmat, When I was trying to run dockerfiles it shows error as below on both arm64 and amd64 architectures.

ubuntu@ip-172-31-19-230:~Serverless-microservices-reference-architecture/dotnet/dockerfiles$  sudo docker build -t dotent:drivers -f drivers . 
[+] Building 0.2s (4/4) FINISHED 
=> [internal] load build definition from drivers                                                                                                                                          0.0s 
=> => transferring dockerfile: 195B                                                                                                                                                       0.0s 
=> [internal] load .dockerignore                                                                                                                                                          0.0s 
=> => transferring context: 2B                                                                                                                                                            0.0s 
=> ERROR [internal] load metadata for docker.io/microsoft/azure-functions-dotnet-core2.0:v2.0.11961-alpha                                                                                 0.2s 
=> [auth] microsoft/azure-functions-dotnet-core2.0:pull token for registry-1.docker.io                                                                                                    0.0s 
------ 
> [internal] load metadata for docker.io/microsoft/azure-functions-dotnet-core2.0:v2.0.11961-alpha: 
------ 
drivers:1 
-------------------- 
   1 | >>> FROM microsoft/azure-functions-dotnet-core2.0:v2.0.11961-alpha 
   2 | 
   3 |     COPY ./ServerlessMicroservices.FunctionApp.Drivers/bin/Debug/netstandard2.0 /home/site/wwwroot 
-------------------- 
ERROR: failed to solve: microsoft/azure-functions-dotnet-core2.0:v2.0.11961-alpha: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

I have tried to check this docker image microsoft/azure-functions-dotnet-core2.0 on docker hub, but it does not show any result for the image.

Kindly share your feedback regarding this. I will be happy to contribute if required.

odidev commented 1 year ago

@DanielLarsenNZ, Could you please share your feedback regarding the above issue.

DanielLarsenNZ commented 1 year ago

Hmmmn yeah good point. Let's fix it. Have you got time to work on this? If so, please open a PR and go for it.