1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-21 01:09:17 +08:00
1Panel/agent/constant/runtime.go

52 lines
1.1 KiB
Go
Raw Normal View History

2024-07-23 14:48:37 +08:00
package constant
const (
ResourceLocal = "local"
ResourceAppstore = "appstore"
RuntimeNormal = "normal"
RuntimeError = "error"
RuntimeBuildIng = "building"
RuntimeStarting = "starting"
RuntimeRunning = "running"
RuntimeReCreating = "recreating"
RuntimeStopped = "stopped"
RuntimeUnhealthy = "unhealthy"
RuntimeCreating = "creating"
RuntimeStartErr = "startErr"
2024-07-23 14:48:37 +08:00
RuntimePHP = "php"
RuntimeNode = "node"
RuntimeJava = "java"
RuntimeGo = "go"
RuntimePython = "python"
2024-12-03 10:12:02 +08:00
RuntimeDotNet = "dotnet"
2024-07-23 14:48:37 +08:00
RuntimeProxyUnix = "unix"
RuntimeProxyTcp = "tcp"
RuntimeUp = "up"
RuntimeDown = "down"
RuntimeRestart = "restart"
RuntimeInstall = "install"
RuntimeUninstall = "uninstall"
RuntimeUpdate = "update"
RuntimeNpm = "npm"
RuntimeYarn = "yarn"
)
var GoDefaultVolumes = map[string]string{
"${CODE_DIR}": "/app",
"./run.sh": "/run.sh",
"./.env": "/.env",
"./mod": "/go/pkg/mod",
}
var RuntimeDefaultVolumes = map[string]string{
"${CODE_DIR}": "/app",
"./run.sh": "/run.sh",
"./.env": "/.env",
}