Do a large chunk of the move to go
This commit moves a huge chunk of the code to go. The TODO.md document indicates what is left to be done.
This commit is contained in:
parent
db2ad9b4bd
commit
7b38fdd801
93 changed files with 4689 additions and 645 deletions
30
env/stack.go
vendored
Normal file
30
env/stack.go
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
package env
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/stack"
|
||||
)
|
||||
|
||||
// Stacks returns the Stacks of this distillery
|
||||
func (dis *Distillery) Stacks() []stack.Installable {
|
||||
// TODO: Do we want to cache these stacks?
|
||||
return []stack.Installable{
|
||||
dis.WebStack(),
|
||||
dis.SelfStack(),
|
||||
dis.ResolverStack(),
|
||||
dis.SSHStack(),
|
||||
dis.TriplestoreStack(),
|
||||
dis.SQLStack(),
|
||||
}
|
||||
}
|
||||
|
||||
// asCoreStack treats the provided stack as a core component of this distillery.
|
||||
func (dis *Distillery) asCoreStack(stack stack.Installable) stack.Installable {
|
||||
stack.Dir = filepath.Join(dis.Config.DeployRoot, "core", stack.Name)
|
||||
|
||||
stack.ContextResource = filepath.Join("resources", "compose", stack.Name)
|
||||
stack.EnvFileResource = filepath.Join("resources", "templates", "docker-env", stack.Name)
|
||||
|
||||
return stack
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue