Skip to content

Commit 3637900

Browse files
committed
feat: 在start-container.ps1中添加对noco服务的支持
为start-container.ps1脚本添加了noco服务的支持,使其能够通过docker启动noco容器。新增了noco到ValidateSet参数中,并添加了对应的docker run命令。
1 parent fda9bb6 commit 3637900

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

start-container.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[CmdletBinding()]
33
param (
44
[Parameter(Mandatory = $true)]
5-
[ValidateSet("minio", "redis", 'postgre', 'etcd', 'nacos', 'rabbitmq', 'mongodb', one-api', 'mongodb-replica','kokoro-fastapi','cadvisor', 'prometheus')]
5+
[ValidateSet("minio", "redis", 'postgre', 'etcd', 'nacos', 'rabbitmq', 'mongodb', 'one-api', 'mongodb-replica','kokoro-fastapi','cadvisor', 'prometheus', 'noco')]
66
[string]$ServiceName, # 更合理的参数名
77

88
[ValidateSet("always", "unless-stopped", 'on-failure', 'on-failure:3', 'no')]
@@ -162,4 +162,12 @@ switch ($ServiceName) {
162162
--restart=$RestartPolicy `
163163
prom/prometheus
164164
}
165+
'noco' {
166+
docker run -d --name noco-dev `
167+
$commonParams `
168+
-p 35080:8080 `
169+
-v $DataPath/nocodb:/usr/app/data/ `
170+
--restart=$RestartPolicy `
171+
nocodb/nocodb:latest
172+
}
165173
}

0 commit comments

Comments
 (0)