Comments (10)
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.
Yes, all azure workloads and docker desktop last version
from buildingcloudnativesolutions.
I went through docker files, not able to see where the url is configured
from buildingcloudnativesolutions.
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
Snapshot 1
from buildingcloudnativesolutions.
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
from buildingcloudnativesolutions.
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.
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.
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.
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.
Barry, can't understand why you are not able to provide an explanation, thanks anyway
from buildingcloudnativesolutions.
Related Issues (3)
- Setup Cosmos DB HOT 11
- Create the DB on Azure HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildingcloudnativesolutions.