stack: Do not use templates for env files

This commit removes the templating logic for writing .env files.
Instead it simply writes a key-value directory directly to the destined
file.
This commit is contained in:
Tom 2023-07-14 14:04:38 +02:00
parent 46b16e5700
commit 588cb7ebaa
22 changed files with 180 additions and 121 deletions

View file

@ -1 +0,0 @@
DOCKER_NETWORK_NAME=${DOCKER_NETWORK_NAME}

View file

@ -29,7 +29,6 @@ func (*Solr) Context(parent component.InstallationContext) component.Installatio
}
//go:embed all:solr
//go:embed solr.env
var resources embed.FS
func (solr *Solr) Stack() component.StackWithResources {
@ -37,7 +36,6 @@ func (solr *Solr) Stack() component.StackWithResources {
Resources: resources,
ContextPath: "solr",
EnvPath: "solr.env",
EnvContext: map[string]string{
"DOCKER_NETWORK_NAME": solr.Config.Docker.Network(),
},