[ Agent ] [ Executor ] - 增加Pipeline部分的代码
This commit is contained in:
34
agent-go/main-prod.go
Normal file
34
agent-go/main-prod.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package main
|
||||
|
||||
//import (
|
||||
// "agent-go/g"
|
||||
// logger2 "agent-go/logger"
|
||||
// "agent-go/register"
|
||||
// "flag"
|
||||
// "fmt"
|
||||
//)
|
||||
//
|
||||
//var log = logger2.Log
|
||||
//
|
||||
//func main() {
|
||||
//
|
||||
// // 解析命令行参数
|
||||
// var version string
|
||||
// var agentServerInfoConf string
|
||||
// flag.StringVar(&version, "version", "", "config file version")
|
||||
// flag.StringVar(&agentServerInfoConf, "agentServerInfoConf", "", "agent server info conf file")
|
||||
// flag.Parse()
|
||||
// // 读取对应版本的配置文件
|
||||
// filename := fmt.Sprintf("octopus-agent-%s.yaml", version)
|
||||
// println("config file name is => " + filename)
|
||||
// println("agent server info file is => " + agentServerInfoConf)
|
||||
//
|
||||
// // 初始化Nacos的连接配置
|
||||
// g.G.AgentConfig = register.ParseConfiguration(filename)
|
||||
//
|
||||
// // 执行初始化之策工作
|
||||
// businessForeverChan := INIT(agentServerInfoConf)
|
||||
//
|
||||
// // 永远等待 runtime的队列消息
|
||||
// <-businessForeverChan
|
||||
//}
|
||||
Reference in New Issue
Block a user