chore: remove pipecat version check from docker build process

This commit is contained in:
Sabiha Khan 2025-10-03 14:03:12 +05:30
parent c7e75819f4
commit d55205fd67
7 changed files with 181 additions and 103 deletions

24
scripts/get_pipecat_commit.sh Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
#
# get_pipecat_commit.sh
#
# Gets the current pipecat submodule commit SHA.
# Used by Docker build process to ensure Dockerfile always uses the correct version.
#
set -euo pipefail
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
# Check if pipecat submodule exists
if [ ! -d "$PROJECT_ROOT/pipecat/.git" ]; then
echo "ERROR: pipecat submodule not initialized at $PROJECT_ROOT/pipecat" >&2
echo "Run: git submodule update --init --recursive" >&2
exit 1
fi
# Get the commit SHA from the submodule
cd "$PROJECT_ROOT/pipecat"
git rev-parse HEAD