How to build NET project & docker image in TC?
I have 3 NET projects: client app and 2 web services.
I'd like to build them in TC, after it to build 3 Docker images in TC containing these applications.
These Docker images should be provided to a customer for the testing.
How to implement this pipeline?
Please sign in to leave a comment.
The exact configuration depends on the details of your desired scenario, how your projects are structured, etc. So, I can't give you a step-by-step guide that you will follow and get the desired result.
In a simple configuration, you can have 3 projects in TeamCity, each with 2 build configurations - the first builds a .NET project and produces artifacts. The second one has artifact dependency on the first one and creates a Docker image with further deployment/upload.
Please refer to the related documentation:
Build configurations: https://www.jetbrains.com/help/teamcity/2023.11/creating-and-editing-build-configurations.html
.NET build step: https://www.jetbrains.com/help/teamcity/2023.11/net.html
Docker build step: https://www.jetbrains.com/help/teamcity/2023.11/docker.html
Dependencies: https://www.jetbrains.com/help/teamcity/2023.11/configuring-dependencies.html
Best regards,
Anton