fix(stack): env placeholder as host path [BE-11187] (#12192)

This commit is contained in:
Oscar Zhou
2024-09-06 08:43:12 +12:00
committed by GitHub
parent 6cff21477e
commit 80e607ab30
3 changed files with 235 additions and 0 deletions
@@ -110,6 +110,11 @@ func (wrapper *PluginWrapper) Validate(ctx context.Context, filePaths []string,
return err
}
func (wrapper *PluginWrapper) Config(ctx context.Context, filePaths []string, options libstack.Options) ([]byte, error) {
configArgs := append([]string{"config"}, options.ConfigOptions...)
return wrapper.command(newCommand(configArgs, filePaths), options)
}
// Command execute a docker-compose command
func (wrapper *PluginWrapper) command(command composeCommand, options libstack.Options) ([]byte, error) {
program := utils.ProgramPath(wrapper.binaryPath, "docker-compose")