Skip to content

Commit

Permalink
feat: v5.16.0 version (#1790)
Browse files Browse the repository at this point in the history
* feat: support virtual machines (#1782)

* feat: support virtual machines

* perf: code make format

---------

Co-authored-by: 张启航 <[email protected]>

* perf: solve go dependency problem

* fix: container disk information collection failed

* perf: some detailed optimizations in the virtual machine

* perf: adjust the maximum number of buildkit build retries

* perf: virtual machine function optimization

* perf: virtual machine image source detection

* fix: avoid using shared storage at the same address

* perf: local virtual machine image skips detection

* perf: optimize builder and runner image acquisition logic (#1789)

Co-authored-by: 张启航 <[email protected]>

---------

Co-authored-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail and 张启航 authored Nov 30, 2023
1 parent 6dd8ae6 commit 469842f
Show file tree
Hide file tree
Showing 98 changed files with 2,378 additions and 1,244 deletions.
2 changes: 2 additions & 0 deletions api/api/api_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ type TenantInterfaceWithV1 interface {
VerticalService(w http.ResponseWriter, r *http.Request)
HorizontalService(w http.ResponseWriter, r *http.Request)
BuildService(w http.ResponseWriter, r *http.Request)
PauseService(w http.ResponseWriter, r *http.Request)
UNPauseService(w http.ResponseWriter, r *http.Request)
DeployService(w http.ResponseWriter, r *http.Request)
UpgradeService(w http.ResponseWriter, r *http.Request)
StatusService(w http.ResponseWriter, r *http.Request)
Expand Down
2 changes: 2 additions & 0 deletions api/api_routers/version2/v2Routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ func (v2 *V2) serviceRouter() chi.Router {
// component build
r.Post("/build", middleware.WrapEL(controller.GetManager().BuildService, dbmodel.TargetTypeService, "build-service", dbmodel.ASYNEVENTTYPE))
// component start
r.Post("/pause", middleware.WrapEL(controller.GetManager().PauseService, dbmodel.TargetTypeService, "pause-service", dbmodel.ASYNEVENTTYPE))
r.Post("/un_pause", middleware.WrapEL(controller.GetManager().UNPauseService, dbmodel.TargetTypeService, "unpause-service", dbmodel.ASYNEVENTTYPE))
r.Post("/start", middleware.WrapEL(controller.GetManager().StartService, dbmodel.TargetTypeService, "start-service", dbmodel.ASYNEVENTTYPE))
// component stop event set to synchronous event, not wait.
r.Post("/stop", middleware.WrapEL(controller.GetManager().StopService, dbmodel.TargetTypeService, "stop-service", dbmodel.SYNEVENTTYPE))
Expand Down
8 changes: 4 additions & 4 deletions api/api_routers/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/go-chi/chi"
)

//Routes routes
// Routes routes
func Routes() chi.Router {
r := chi.NewRouter()
r.Get("/docker_console", controller.GetDockerConsole().Get)
Expand All @@ -36,15 +36,15 @@ func Routes() chi.Router {
return r
}

//LogRoutes 日志下载路由
// LogRoutes 日志下载路由
func LogRoutes() chi.Router {
r := chi.NewRouter()
r.Get("/{gid}/{filename}", controller.GetLogFile().Get)
r.Get("/install_log/{filename}", controller.GetLogFile().GetInstallLog)
return r
}

//AppRoutes 应用导出包下载路由
// AppRoutes 应用导出包下载路由
func AppRoutes() chi.Router {
r := chi.NewRouter()
r.Get("/download/{format}/{fileName}", controller.GetManager().Download)
Expand All @@ -53,7 +53,7 @@ func AppRoutes() chi.Router {
return r
}

//PackageBuildRoutes 本地文件上传路由
// PackageBuildRoutes 本地文件上传路由
func PackageBuildRoutes() chi.Router {
r := chi.NewRouter()
r.Post("/component/events/{eventID}", controller.GetManager().UploadPackage)
Expand Down
Loading

0 comments on commit 469842f

Please sign in to comment.