[ Agent ] [ App ] - offline build chrony server
This commit is contained in:
@@ -1808,10 +1808,10 @@ func (op *AgentOsOperator) installChronyByDockerExec(funcArgs []string) (bool, [
|
||||
}
|
||||
}
|
||||
|
||||
// check image exists
|
||||
if !BasicDockerImageExists("simonrupf/chronyd", "0.4.3") {
|
||||
parseIP := net.ParseIP(funcArgs[0])
|
||||
if parseIP == nil {
|
||||
return false, []string{
|
||||
"[installChronyByDockerExec] - docker image not exists !",
|
||||
"[installChronyByDockerExec] - ip args error !",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1825,7 +1825,7 @@ func (op *AgentOsOperator) installChronyByDockerExec(funcArgs []string) (bool, [
|
||||
"--publish=123:123/udp",
|
||||
"--env=NTP_SERVERS=\"ntp1.aliyun.com,ntp2.aliyun.com,ntp3.aliyun.com,ntp4.aliyun.com\"",
|
||||
"--env=LOG_LEVEL=0",
|
||||
"simonrupf/chronyd",
|
||||
funcArgs[0] + ":8033/cmii/chronyd:0.4.3",
|
||||
})
|
||||
if !ok {
|
||||
return false, append(resultLog, "[installChronyByDockerExec] - docker chrony run error !")
|
||||
|
||||
@@ -95,10 +95,10 @@ public class BaseFuncScheduler {
|
||||
|
||||
|
||||
List<BaseFunctionEnum> masterNodeProcedureList = List.of(
|
||||
// BaseFunctionEnum.DISABLE_SWAP,
|
||||
// BaseFunctionEnum.SHUTDOWN_FIREWALL,
|
||||
// BaseFunctionEnum.CHRONY_TO_MASTER,
|
||||
// BaseFunctionEnum.INSTALL_DEFAULT_SSH_KEY
|
||||
BaseFunctionEnum.DISABLE_SWAP,
|
||||
BaseFunctionEnum.SHUTDOWN_FIREWALL,
|
||||
BaseFunctionEnum.CHRONY_TO_MASTER,
|
||||
BaseFunctionEnum.INSTALL_DEFAULT_SSH_KEY
|
||||
);
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ public class BaseFuncScheduler {
|
||||
}
|
||||
|
||||
List<BaseFunctionEnum> masterNodeDurationTaskList = List.of(
|
||||
// BaseFunctionEnum.INSTALL_NFS_SERVER_ONLINE,
|
||||
BaseFunctionEnum.INSTALL_NFS_SERVER_ONLINE,
|
||||
BaseFunctionEnum.INSTALL_DOCKER,
|
||||
BaseFunctionEnum.INSTALL_DOCKER_COMPOSE,
|
||||
BaseFunctionEnum.MODIFY_DOCKER_CONFIG,
|
||||
|
||||
@@ -53,11 +53,11 @@ public class TestBaseFuncScheduler {
|
||||
projectDeployContext.setMasterNode(serverInfoPO);
|
||||
|
||||
|
||||
baseFuncScheduler.runProcedure(projectDeployContext);
|
||||
// baseFuncScheduler.runProcedure(projectDeployContext);
|
||||
|
||||
// harborFuncScheduler.runProcedure(projectDeployContext);
|
||||
|
||||
// appFuncScheduler.runProcedure(projectDeployContext);
|
||||
appFuncScheduler.runProcedure(projectDeployContext);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user