Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
Docs for specifying base image:tag (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
spboyer authored May 18, 2020
1 parent d6c8dc2 commit 87cd4f4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/reference/local_development.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,28 @@ Tye will build all .NET projects (unless `build: false` has been specified) befo

Tye will use the Docker cli to pull any needed container images before launching any services. This is done as a separate step to avoid failures when the network is very slow or an image is very large.

### Determining Docker base images and tags

Tye will use the TFM of the project to set the base image and tags of the container images to use when creating the associated Dockerfile.

Should you choose to use a custom base image and/or tag or variant you can do so by specifying the base image and tag in a `<PropertyGroup>` in any of the projects.

Example - custom image
```xml
<PropertyGroup>
<ContainerBaseImage>myregistry/dotnetbaseimage</ContainerBaseImage>
<ContainerBaseTag>v1.1.0</ContainerBaseTag>
</PropertyGroup>
```

Example - Debian buster tag
```xml
<PropertyGroup>
<ContainerBaseImage>mcr.microsoft.com/dotnet/core/sdk</ContainerBaseImage>
<ContainerBaseTag>3.1-buster</ContainerBaseTag>
</PropertyGroup>
```

## Computing bindings

In order to help services communicate, Tye manages details like listening ports and hostnames. This listening information is specified to services using environment variables in development. This section will summarize some of the key information for local development, but the best guide for the topic is the [service discovery documentation](/docs/reference/service_discovery.md).
Expand Down

0 comments on commit 87cd4f4

Please sign in to comment.