From 7146582ead8960bb1edb68e42d1075f0316d2632 Mon Sep 17 00:00:00 2001 From: 0xrushi <6279035+0xrushi@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:34:32 -0500 Subject: [PATCH 1/6] Enhance Docker versioning in workflow Added a check to ensure the version string does not start with a hyphen, which is invalid for Docker tags. If it does, a warning is logged and 'v' is prepended to the version string. --- .github/workflows/advanced-docker-compose-build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/advanced-docker-compose-build.yml b/.github/workflows/advanced-docker-compose-build.yml index 5acc717e..8858bbf6 100644 --- a/.github/workflows/advanced-docker-compose-build.yml +++ b/.github/workflows/advanced-docker-compose-build.yml @@ -116,6 +116,13 @@ jobs: else VERSION="sha-${GITHUB_SHA::7}" fi + + # Sanitize: Ensure version doesn't start with a hyphen (invalid for docker tags) + if [[ "$VERSION" == -* ]]; then + echo "Warning: Version '$VERSION' starts with a hyphen. Prepending 'v'." + VERSION="v${VERSION}" + fi + echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT" - name: Build, tag, and push services sequentially with version From fd39b06d411ba69a3b670c1e68c9fb3e14e8c464 Mon Sep 17 00:00:00 2001 From: 0xrushi <6279035+0xrushi@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:41:37 -0500 Subject: [PATCH 2/6] Fix openmemory-mcp build: Initialize cache before build --- .github/workflows/advanced-docker-compose-build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/advanced-docker-compose-build.yml b/.github/workflows/advanced-docker-compose-build.yml index 8858bbf6..86af4c04 100644 --- a/.github/workflows/advanced-docker-compose-build.yml +++ b/.github/workflows/advanced-docker-compose-build.yml @@ -106,6 +106,13 @@ jobs: echo ".env not found; continuing" fi + - 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: | From a5a62e1a018db1f0c9f63b183e3a411ee8a58eb2 Mon Sep 17 00:00:00 2001 From: 0xrushi <6279035+0xrushi@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:44:02 -0500 Subject: [PATCH 3/6] Fix openmemory-mcp: Use main branch for cache init --- extras/openmemory-mcp/init-cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/openmemory-mcp/init-cache.sh b/extras/openmemory-mcp/init-cache.sh index 18ec6f6f..c2dfde5d 100755 --- a/extras/openmemory-mcp/init-cache.sh +++ b/extras/openmemory-mcp/init-cache.sh @@ -3,7 +3,7 @@ CACHE_DIR="./cache/mem0" FORK_REPO="https://github.com/AnkushMalaker/mem0.git" -BRANCH="fix/get-endpoint" +BRANCH="main" echo "🔄 Updating OpenMemory cache from fork..." From 1a8a29f6803ca85ce499519e06d8d55cc097ba78 Mon Sep 17 00:00:00 2001 From: 0xrushi <6279035+0xrushi@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:48:51 -0500 Subject: [PATCH 4/6] Update openmemory-mcp cache initialization branch and remove version hyphen check from Docker workflow --- .github/workflows/advanced-docker-compose-build.yml | 6 ------ extras/openmemory-mcp/init-cache.sh | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/advanced-docker-compose-build.yml b/.github/workflows/advanced-docker-compose-build.yml index 86af4c04..3c043a71 100644 --- a/.github/workflows/advanced-docker-compose-build.yml +++ b/.github/workflows/advanced-docker-compose-build.yml @@ -124,12 +124,6 @@ jobs: VERSION="sha-${GITHUB_SHA::7}" fi - # Sanitize: Ensure version doesn't start with a hyphen (invalid for docker tags) - if [[ "$VERSION" == -* ]]; then - echo "Warning: Version '$VERSION' starts with a hyphen. Prepending 'v'." - VERSION="v${VERSION}" - fi - echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT" - name: Build, tag, and push services sequentially with version diff --git a/extras/openmemory-mcp/init-cache.sh b/extras/openmemory-mcp/init-cache.sh index c2dfde5d..18ec6f6f 100755 --- a/extras/openmemory-mcp/init-cache.sh +++ b/extras/openmemory-mcp/init-cache.sh @@ -3,7 +3,7 @@ CACHE_DIR="./cache/mem0" FORK_REPO="https://github.com/AnkushMalaker/mem0.git" -BRANCH="main" +BRANCH="fix/get-endpoint" echo "🔄 Updating OpenMemory cache from fork..." From 8b4ce7692b511f890687802d19c84a6cb8035bb7 Mon Sep 17 00:00:00 2001 From: 0xrushi <6279035+0xrushi@users.noreply.github.com> Date: Mon, 1 Dec 2025 20:26:08 -0500 Subject: [PATCH 5/6] Fix CI: Free disk space and prune images to avoid space exhaustion --- .../advanced-docker-compose-build.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/advanced-docker-compose-build.yml b/.github/workflows/advanced-docker-compose-build.yml index 3c043a71..2e0bfb15 100644 --- a/.github/workflows/advanced-docker-compose-build.yml +++ b/.github/workflows/advanced-docker-compose-build.yml @@ -106,6 +106,17 @@ 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..." @@ -185,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) @@ -213,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::" @@ -245,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::" From 4bd49069e41dbd45620ac269c98e25aa99ae6235 Mon Sep 17 00:00:00 2001 From: 0xrushi <6279035+0xrushi@users.noreply.github.com> Date: Mon, 1 Dec 2025 20:48:52 -0500 Subject: [PATCH 6/6] Fix CI: Disable uv cache mount and clean cache to save space --- extras/asr-services/Dockerfile_Moonshine | 4 ++-- extras/asr-services/Dockerfile_Parakeet | 4 ++-- extras/speaker-recognition/Dockerfile | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/extras/asr-services/Dockerfile_Moonshine b/extras/asr-services/Dockerfile_Moonshine index c193dde3..0fbfa861 100644 --- a/extras/asr-services/Dockerfile_Moonshine +++ b/extras/asr-services/Dockerfile_Moonshine @@ -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 . . diff --git a/extras/asr-services/Dockerfile_Parakeet b/extras/asr-services/Dockerfile_Parakeet index 91e4ba8b..368d2130 100644 --- a/extras/asr-services/Dockerfile_Parakeet +++ b/extras/asr-services/Dockerfile_Parakeet @@ -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 :) diff --git a/extras/speaker-recognition/Dockerfile b/extras/speaker-recognition/Dockerfile index 0fc84b84..d14baf35 100644 --- a/extras/speaker-recognition/Dockerfile +++ b/extras/speaker-recognition/Dockerfile @@ -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