[Excution] - accomplish base Function - 1

This commit is contained in:
IceDerce
2023-06-21 11:36:27 +08:00
parent 102f043204
commit 2b27a5b5fd
3 changed files with 394 additions and 34 deletions

View File

@@ -6,10 +6,12 @@ var agentOP = AgentOsOperator{
InstallCommandPrefix: []string{
"apt-get", "install", "-y",
},
RemoveCommandPrefix: []string{"/usr/bin/apt", "remove", "-y"},
RemoveCommandPrefix: []string{"apt", "remove", "-y"},
CanAccessInternet: true,
IsOsTypeUbuntu: true,
IsAgentInnerWall: true,
AgentArch: "amd64",
AgentOSReleaseCode: "focal",
}
func TestBaseFunc(t *testing.T) {
@@ -19,6 +21,7 @@ func TestBaseFunc(t *testing.T) {
//agentOP.Exec("disableSwap")
//agentOP.Exec("enableSwap")
//agentOP.Exec("removeDocker")
agentOP.Exec("installDocker")
//agentOP.Exec("installDocker", "20")
agentOP.Exec("installDockerCompose")
}