完善客户升级 runtime 预拉
This commit is contained in:
parent
4696215999
commit
f92109e34f
@ -1 +1 @@
|
||||
1.0.7
|
||||
1.0.8
|
||||
|
||||
@ -31,7 +31,7 @@ param(
|
||||
[string]$RegistryHost = "",
|
||||
[ValidateSet("http", "https")]
|
||||
[string]$RegistryScheme = "http",
|
||||
[string]$RegistryUsername = "flnxi",
|
||||
[string]$RegistryUsername = "flnxi-publish",
|
||||
[SecureString]$RegistryPassword = $null,
|
||||
[string]$RegistryNamespace = "flnxi",
|
||||
[string]$ImageRepository = "material/flnxi-material",
|
||||
@ -123,7 +123,7 @@ function Show-Help {
|
||||
Write-Host " -SshPort SSH端口,默认 22;内部测试机或客户自定义端口必须显式传入"
|
||||
Write-Host " -RemoteSudo 远端 Docker 需要 sudo 时启用;常见于飞牛 / NAS 普通管理员账号"
|
||||
Write-Host " -RegistryHost Registry地址;发布和部署时必须显式传入"
|
||||
Write-Host " -RegistryUsername Registry账号,默认 flnxi"
|
||||
Write-Host " -RegistryUsername Registry账号,默认 flnxi-publish"
|
||||
Write-Host " -RegistryPassword Registry密码,建议用 Read-Host -AsSecureString 输入"
|
||||
Write-Host " -ImageRepository 正式版镜像仓库路径,默认 material/flnxi-material"
|
||||
Write-Host " -TestImageRepository 测试版镜像仓库路径,默认 material-dev/flnxi-material"
|
||||
@ -946,6 +946,10 @@ write_restore_plan
|
||||
|
||||
$lines.Add("docker pull $quotedRegistryImage")
|
||||
if ($FullComposeUp) {
|
||||
$lines.Add('echo "预拉 Runtime 镜像(完整 compose 升级)"')
|
||||
$lines.Add("docker pull $quotedPostgresImage")
|
||||
$lines.Add("docker pull $quotedMinioImage")
|
||||
$lines.Add("docker pull $quotedMinioMcImage")
|
||||
$lines.Add('docker compose -f "$compose_file" up -d --pull never')
|
||||
} else {
|
||||
$lines.Add('docker compose -f "$compose_file" stop "$compose_service" || true')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user