Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/advanced-docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,24 @@ jobs:
echo ".env not found; continuing"
fi

- name: Free Disk Space
run: |
echo "Freeing disk space..."
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /usr/share/swift
docker system prune -a -f
df -h

- name: Initialize OpenMemory cache
run: |
echo "Initializing OpenMemory cache..."
cd ../../extras/openmemory-mcp
chmod +x init-cache.sh
./init-cache.sh

- name: Determine version
id: version
run: |
Expand All @@ -116,6 +134,7 @@ jobs:
else
VERSION="sha-${GITHUB_SHA::7}"
fi

echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"

- name: Build, tag, and push services sequentially with version
Expand Down Expand Up @@ -177,6 +196,9 @@ jobs:
docker image rm -f "$target_image" || true
docker image rm -f "$latest_image" || true
echo "::endgroup::"

# Aggressive cleanup to save space
docker system prune -af || true
done

# Build and push parakeet-asr with CUDA variants (cu121, cu126, cu128)
Expand Down Expand Up @@ -205,6 +227,9 @@ jobs:
docker image rm -f "$target_image" || true
docker image rm -f "$latest_image" || true
fi

# Aggressive cleanup to save space
docker system prune -af || true
done
cd - > /dev/null
echo "::endgroup::"
Expand Down Expand Up @@ -237,6 +262,9 @@ jobs:
docker image rm -f "$target_image" || true
docker image rm -f "$latest_image" || true
fi

# Aggressive cleanup to save space
docker system prune -af || true
done
cd - > /dev/null
echo "::endgroup::"
Expand Down
4 changes: 2 additions & 2 deletions extras/asr-services/Dockerfile_Moonshine
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Dependency manifest first for cache‑friendly installs
COPY pyproject.toml uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --no-install-project --compile-bytecode --group moonshine
RUN uv sync --no-install-project --compile-bytecode --group moonshine && \
uv cache clean

# Add source and install project itself
COPY . .
Expand Down
4 changes: 2 additions & 2 deletions extras/asr-services/Dockerfile_Parakeet
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Dependency manifest first for cache‑friendly installs
COPY pyproject.toml uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --no-install-project --group parakeet --extra ${CUDA_VERSION}
RUN uv sync --no-install-project --group parakeet --extra ${CUDA_VERSION} && \
uv cache clean

# Should prepare the .venv for use :)

Expand Down
3 changes: 2 additions & 1 deletion extras/speaker-recognition/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ RUN mkdir -p src/simple_speaker_recognition
COPY src/simple_speaker_recognition/__init__.py src/simple_speaker_recognition/

# Install dependencies and package
RUN uv sync --no-dev --extra ${PYTORCH_CUDA_VERSION}
RUN uv sync --no-dev --extra ${PYTORCH_CUDA_VERSION} && \
uv cache clean

# Create directories
RUN mkdir -p /app/audio_chunks /app/debug /app/data /models
Expand Down
Loading