takttusur / takt-media

Check our news and participate to competitions and other events
MIT License
0 stars 0 forks source link

Add hot reload in local docker-compose env #16

Open andreygolubkow opened 6 months ago

andreygolubkow commented 6 months ago

Add hot reload in local docker-compose env

To provide fast debugging to developers

Acceptance criteria

  1. The developer can start local environment using docker-compose file
  2. All necessary infrastructure dependencies should be supported in docker-compose
  3. docker-compose contains:
    1. Started API project
    2. Started Worker project
  4. When the developer has code changes, it should be applied to projects in docker-compose environment
    1. If hot reload feature is not supported by dotnet:
      1. The developer can build projects and restart docker-compose environment. Images should not be built
      2. Docker images should use dotnet projects binaries from build output folder as a volumes
  5. Started project should be available for debugging

Technical details

https://learn.microsoft.com/en-us/aspnet/core/test/hot-reload?view=aspnetcore-8.0 https://medium.com/medialesson/debug-dockerized-net-application-on-remote-machine-using-visual-studio-code-744a1b13af61 https://learn.microsoft.com/en-us/visualstudio/containers/edit-and-refresh?view=vs-2022 https://devopscell.com/docker/docker-compose/volumes/2018/01/16/volumes-in-docker-compose.html