메인 메뉴 Podman 서버 기동·종료·재시작 + 서버 → Ollama 서버 (Windows·Mac)

- 종료: 실행 중 컨테이너 기억 → 컨테이너 → 가상 머신 순서로 멈춤
- 기동: 가상 머신 켜고 기억해 둔 컨테이너만 다시 켬 (없으면 크기 선택 후 만들기)
- 재시작: 그대로 / 추천·최소·최대·사용자 정의 (podman machine set 시도, 안 되면 다시 만들기 확인)
- 상태 화면·메뉴 이름: Podman 서버 / Ollama 서버

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HnDmXrFqktWwYa1cuJRAVZ
This commit is contained in:
2026-11-05 05:43:32 +00:00
parent fcea2ab76e
commit cd003bfe39
11 changed files with 323 additions and 29 deletions

View File

@@ -230,7 +230,8 @@ foreach ($__src in @(
'14_storage_quickopen.ps1',
'15_webui_image_sync.ps1',
'16_factory_reset.ps1',
'17_podman_monitor.ps1'
'17_podman_monitor.ps1',
'18_podman_server.ps1'
)) {
$__path = Join-Path $SrcDir $__src
if (-not (Test-Path -LiteralPath $__path)) {
@@ -270,10 +271,14 @@ if ($env:JJ_OM_NOMENU -eq '1') { return }
$script:StatusInMenus = $true # 이제부터 모든 메뉴에 상태 정보 표시
while ($true) {
$items = @(
(New-MenuItem '-' "${CYAN}──────── 서버 ────────${RESET}" '-0')
(New-MenuItem 'start' "▶ 서버 기동 ${GRAY}(꺼져 있을 때만 켭니다)${RESET}")
(New-MenuItem 'stop' '■ 서버 종료')
(New-MenuItem 'restart' "↻ 서버 재시작 ${GRAY}(성능 설정을 다시 적용)${RESET}")
(New-MenuItem '-' "${CYAN}──────── Podman 서버 ────────${RESET}" '-p')
(New-MenuItem 'p_start' "▶ Podman 서버 기동 ${GRAY}(가상 머신 + 멈추기 전 켜져 있던 컨테이너)${RESET}")
(New-MenuItem 'p_stop' "■ Podman 서버 종료 ${GRAY}(컨테이너 → 가상 머신)${RESET}")
(New-MenuItem 'p_restart' "↻ Podman 서버 재시작 ${GRAY}(그대로 또는 CPU·메모리 바꿔서)${RESET}")
(New-MenuItem '-' "${CYAN}──────── Ollama 서버 ────────${RESET}" '-0')
(New-MenuItem 'start' "▶ Ollama 서버 기동 ${GRAY}(꺼져 있을 때만 켭니다)${RESET}")
(New-MenuItem 'stop' '■ Ollama 서버 종료')
(New-MenuItem 'restart' "↻ Ollama 서버 재시작 ${GRAY}(성능 설정을 다시 적용)${RESET}")
(New-MenuItem '-' "${CYAN}──────── 모델 ────────${RESET}" '-1')
(New-MenuItem 'installed' ' 설치된 모델 실행')
(New-MenuItem 'online' " 🔎 인터넷에서 모델 찾기·설치 ${GRAY}(ollama.com)${RESET}")
@@ -309,6 +314,9 @@ while ($true) {
if ($sel -eq '__secret') { Invoke-FactoryReset; continue }
switch ($sel) {
'p_start' { Clear-Host; Start-PodmanServer; Wait-Return }
'p_stop' { Clear-Host; Stop-PodmanServer; Wait-Return }
'p_restart' { Clear-Host; Restart-PodmanServer; Wait-Return }
'start' { Clear-Host; [void](Start-OllamaServer); Wait-Return }
'stop' { Clear-Host; Stop-OllamaServer; Wait-Return }
'restart' { Clear-Host; [void](Restart-OllamaServer); Wait-Return }