- quadlet: :Z → :z (shared) to allow concurrent access with asr.service - build.sh: --user systemd → system systemd paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
487 B
Bash
Executable File
20 lines
487 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
IMAGE="localhost/asr-v2:latest"
|
|
|
|
echo "==> Building $IMAGE"
|
|
podman build -t "$IMAGE" -f Containerfile .
|
|
|
|
echo ""
|
|
echo "빌드 완료: $IMAGE"
|
|
echo ""
|
|
echo "배포 방법:"
|
|
echo " 1. quadlet 파일 복사:"
|
|
echo " cp quadlet/asr-v2.container /etc/containers/systemd/"
|
|
echo " 2. systemd 리로드 및 시작:"
|
|
echo " systemctl daemon-reload"
|
|
echo " systemctl start asr-v2"
|
|
echo " 3. 로그 확인:"
|
|
echo " journalctl -u asr-v2 -f"
|