Sitecore / docker-tools

Sitecore Docker Tools are utilities which assist Sitecore developers in initializing and running containerized Sitecore environments.
MIT License
27 stars 17 forks source link

RFC: Entrypoint-based config transforms #3

Closed nickwesselman closed 3 years ago

nickwesselman commented 3 years ago

RFC: DO NOT MERGE

Concept

Allow configuration of development-specific Web.config transforms in the development entrypoint. Docker Tools would provide some of the essentials, but developers could add others.

Example

SITECORE_DEVELOPMENT_TRANSFORMS=CustomErrors,Debug,OptimizeCompilations

Why not do this in my Dockerfile?

It allows you to have a consistent image build for dev, test, and prod.

Is there some way to set these values purely with environment variables and configBuilders?

My POC with Section Handlers was only half-successful. It's possible for customErrors but not compilation, due to availability of the app domain during configuration load.

Why an environment variable and not a entrypoint script argument?

Seems cleaner this way, but open to input on this.

nickwesselman commented 3 years ago

Replaced with #4