Skip to content

Commit

Permalink
Release 0.14.0-rc.1 (#1096)
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
wwwy3y3 and coderabbitai[bot] authored Jan 9, 2025
1 parent 5fa29ed commit ded2387
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ QDRANT_API_KEY=

# version
# CHANGE THIS TO THE LATEST VERSION
WREN_PRODUCT_VERSION=0.13.2
WREN_ENGINE_VERSION=0.12.6
WREN_AI_SERVICE_VERSION=0.13.4
IBIS_SERVER_VERSION=0.12.6
WREN_UI_VERSION=0.18.7
WREN_PRODUCT_VERSION=0.14.0-rc.1
WREN_ENGINE_VERSION=0.13.1
WREN_AI_SERVICE_VERSION=0.14.0
IBIS_SERVER_VERSION=0.13.1
WREN_UI_VERSION=0.19.1
WREN_BOOTSTRAP_VERSION=0.1.5

# user id (uuid v4)
Expand Down
18 changes: 16 additions & 2 deletions wren-launcher/utils/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

const (
// please change the version when the version is updated
WREN_PRODUCT_VERSION string = "0.13.2"
WREN_PRODUCT_VERSION string = "0.14.0-rc.1"
DOCKER_COMPOSE_YAML_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/docker-compose.yaml"
DOCKER_COMPOSE_ENV_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/.env.example"
AI_SERVICE_CONFIG_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/config.example.yaml"
Expand Down Expand Up @@ -315,6 +315,20 @@ func getConfigFilePath(projectDir string) string {
return path.Join(projectDir, "config.yaml")
}

// RunDockerCompose starts Docker services for a project using docker-compose.
// It initializes Docker CLI, checks Docker engine availability, and runs docker-compose up.
// For custom LLM providers, it specifically recreates the wren-ai-service container.
//
// Parameters:
// - projectName: Name of the Docker Compose project
// - projectDir: Directory containing docker-compose.yaml and .env files
// - llmProvider: Type of LLM provider (e.g., "custom" or default)
//
// Returns an error if Docker initialization, configuration, or service startup fails.
// Supports both default and custom LLM provider configurations.
//
// Example:
// err := RunDockerCompose("wren", "/path/to/project", "openai")
func RunDockerCompose(projectName string, projectDir string, llmProvider string) error {
ctx := context.Background()
composeFilePath := path.Join(projectDir, "docker-compose.yaml")
Expand Down Expand Up @@ -370,7 +384,7 @@ func RunDockerCompose(projectName string, projectDir string, llmProvider string)
Services: []string{"wren-ai-service"},
},
}

// Run the up command with specific options for wren-ai-service
err = apiService.Up(ctx, projectType, upOptions)
if err != nil {
Expand Down

0 comments on commit ded2387

Please sign in to comment.