mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-11-17 00:06:00 +00:00
fix: update default Docker image version (#14411)
This commit is contained in:
@@ -53,7 +53,7 @@ type MCPInvocation struct {
|
||||
|
||||
type MCPSetting struct {
|
||||
RuntimeType string `gorm:"not null;default:docker"`
|
||||
DockerImage string `gorm:"not null;default:1panel/mcp-server:v1.0.0"`
|
||||
DockerImage string `gorm:"not null;default:1panel/mcp-server:v2.0.0"`
|
||||
ID uint `gorm:"primaryKey"`
|
||||
Enabled bool `gorm:"not null;default:false"`
|
||||
ListenPort int `gorm:"not null;default:18081"`
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
|
||||
const (
|
||||
DockerImageRepository = "1panel/mcp-server"
|
||||
DefaultDockerImage = DockerImageRepository + ":v1.0.0"
|
||||
DefaultDockerImage = DockerImageRepository + ":v2.0.0"
|
||||
DockerContainerName = "1panel-mcp"
|
||||
dockerAgentEndpoint = "http://agent/internal/mcp/docker"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { PanelMCP } from '@/api/interface/panel-mcp';
|
||||
import { isAxiosError } from 'axios';
|
||||
|
||||
export const DEFAULT_MCP_DOCKER_IMAGE = '1panel/mcp-server:v1.0.0';
|
||||
export const DEFAULT_MCP_DOCKER_IMAGE = '1panel/mcp-server:v2.0.0';
|
||||
const dockerPathComponent = '[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*';
|
||||
const dockerDomainComponent = '(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])';
|
||||
const dockerRegistryHost = `(?:${dockerDomainComponent}(?:\\.${dockerDomainComponent})*|\\[[a-fA-F0-9:]+\\])`;
|
||||
|
||||
Reference in New Issue
Block a user