Configuring microservices and resources
The App Host handles services as follows:
- .NET projects: These can be configured with
var myService = builder.AddProject<Projects.MyProjectName>("myservicename");
- Containers stored in some registry: These can be configured with
var myService = builder.AddContainer("myservicename", "ContainerNameOrUri");
- Executables: These can be configured with
var myService = builder.AddExecutable("myservicename", "<shell command>", "<executable working directory>");
- Dockerfiles to be built: These can be configured with
var myService = builder.AddDockerfile(
"myservicename ", "relative/context/path");
where "relative/context/path"
is the folder containing the Dockerfile and all files needed to build the Dockerfile. This path must be relative to the directory that contains the App Host project file...