Giter VIP home page Giter VIP logo

Comments (10)

bmaluijb avatar bmaluijb commented on May 25, 2024

Hi, you can check the docker files in the solution. Those configure the routing between the applications (api and website). Did you follow the module in the course and have all the prerequisites installed to run containers?

from buildingcloudnativesolutions.

eliassal avatar eliassal commented on May 25, 2024

Yes, all azure workloads and docker desktop last version

from buildingcloudnativesolutions.

eliassal avatar eliassal commented on May 25, 2024

I went through docker files, not able to see where the url is configured

from buildingcloudnativesolutions.

eliassal avatar eliassal commented on May 25, 2024

Barry, the container branch is not compiling correctly. There is something strange regarding the MVC project. When I right click the project, I see only

Docker support

but no
Orchestrator container support
as you can notice in the snapshot 1 but doing the same thing in the API project I have this option

Wen I try to compile, it requires me to connect to Azure and not to compile locally

ContainerOrchSupport_003

Snapshot 1

ContainerOrchSupport_002

Snapshot Api project**
ContainerOrchSupport

from buildingcloudnativesolutions.

eliassal avatar eliassal commented on May 25, 2024

Barry, can you please get back with instructions how to setup the code for running the version with Containers, I am completely blocked. Whe I hit F5 I am always presented with my email used for my Azure account but no subscription appears
What should be the code in appsettings.json in both the mvc and api in this version? Thanks
ContainerOrchSupport_004

from buildingcloudnativesolutions.

bmaluijb avatar bmaluijb commented on May 25, 2024

Have you finished the course on Pluralsight? The code works out of the box for me, so Iā€™m not sure what is going wrong in your end

from buildingcloudnativesolutions.

eliassal avatar eliassal commented on May 25, 2024

Yes, I finished the course 2 months back, so I am using the pdf files and notes I took whicle watching the videos. Tell me for one thing or share the config of your MVC container appsettings.json please, how you configure the container to connect to localhost:8081, so it will then think that it has the cosmosdb inside the container whereas it is on host localhost:8081, no?
Once I get this, I will try to rebuilt everything for the containers version

from buildingcloudnativesolutions.

eliassal avatar eliassal commented on May 25, 2024

OK Barry, I have rewritten the whole API project and now I am getting composer running and creating the 2 containers, however, as far as I am aware, it not possible to put

"CosmosDBEndpoint": "https://localhost:8081/"

in tha ppsettings, as when the container runs it will look for this on its web site not the host where cosmosdb is installed, can you please provide the settings you use?

from buildingcloudnativesolutions.

eliassal avatar eliassal commented on May 25, 2024

Barry, while waiting for you to respond, I managed to make the solution works after i did a couple of changes, I started cosmosdb emulator with networks support
Microsoft.Azure.Cosmos.Emulator.exe /AllowNetworkAccess
then changed the appsettings in the mvc to the following
"CosmosDBEndpoint": "https://192.168.10.3:8081/",

However, I am not able to understand how all the plumbing is working.
Issuing
docker ps
shows
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d8f28db8c573 nationalcookiesmvc:dev "tail -f /dev/null" 3 hours ago Up 3 hours 0.0.0.0:32773->80/tcp, 0.0.0.0:32772->443/tcp NationalCookies.MVC
3d882282b089 nationalcookiessapi:dev "tail -f /dev/null" 3 hours ago Up 3 hours 0.0.0.0:32771->80/tcp, 0.0.0.0:32770->443/tcp NationalCookiesS.API

NationalCookiesS.API exposes port 80 through port 32771, I am not able to understand how access can be done through port 80 in the home controller using
request.RequestUri = new Uri("http://nationalcookiesS.api/api/values/");

Can you please explain?

"CosmosDBEndpoint": "https://192.168.1.3:8081/",

from buildingcloudnativesolutions.

eliassal avatar eliassal commented on May 25, 2024

Barry, can't understand why you are not able to provide an explanation, thanks anyway

from buildingcloudnativesolutions.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.