d-velop / dvelop-app-template-cs

This template contains everything you need to write an app for d.velop cloud in C#
Apache License 2.0
17 stars 7 forks source link

Split docker build from VS #27

Closed hangy closed 5 years ago

hangy commented 5 years ago

Unless there is another reason than having terraform\.terraform as a place to store some persistent data, which requires the source directory to be mounted as a volume, this is an easy way to allow running docker build without disturbing running instanced of an IDE.

Fixes #2

mtestrot commented 5 years ago

Hi @hangy . Thanks for collaborating with us. You are the first external contributor. Nice!

An alternative solution might be to use a common output path (something like $(SolutionDir)\out) for all projects and to use docker volumes for the nuget package folder and this common output path.

This should preserve nuget packages and build outputs between docker builds and separate them from the IDE builds.

I use a similar aproach for go modules. cf. dvelop-app-template-go

This solution - if it works - keeps the container small and allows for a centrally managed build container shared by multiple projects.