statuses update
This commit is contained in:
28
k8s/build-images.sh
Executable file
28
k8s/build-images.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
# Сборка образов и импорт в k3s (без внешнего registry).
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
TAG="${TAG:-latest}"
|
||||
|
||||
build() {
|
||||
local name=$1 dir=$2
|
||||
echo "==> building audio-pipeline/${name}:${TAG}"
|
||||
docker build -t "audio-pipeline/${name}:${TAG}" "${ROOT}/${dir}"
|
||||
}
|
||||
|
||||
build watcher watcher
|
||||
build transcribe workers/transcribe
|
||||
build tagging workers/tagging
|
||||
build analyse workers/analyse
|
||||
|
||||
if command -v k3s >/dev/null 2>&1; then
|
||||
echo "==> importing images into k3s containerd"
|
||||
for name in watcher transcribe tagging analyse; do
|
||||
docker save "audio-pipeline/${name}:${TAG}" | sudo k3s ctr images import -
|
||||
done
|
||||
echo "done"
|
||||
else
|
||||
echo "k3s not found — images built locally only"
|
||||
echo "push to registry or run: docker save ... | sudo k3s ctr images import -"
|
||||
fi
|
||||
Reference in New Issue
Block a user