Compare commits
5 Commits
debug-qa
...
fix-docker
| Author | SHA1 | Date | |
|---|---|---|---|
| 0fc4ddbc28 | |||
| 9f8eab2ad2 | |||
| 69c483ac46 | |||
| ac178ccbb0 | |||
| 3f16828bdf |
@@ -11,19 +11,19 @@ on:
|
|||||||
description: 'The internal project name for notifications'
|
description: 'The internal project name for notifications'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
# secrets:
|
secrets:
|
||||||
# GOTIFY_URL:
|
GOTIFY_URL:
|
||||||
# required: true
|
required: true
|
||||||
# GOTIFY_TOKEN:
|
GOTIFY_TOKEN:
|
||||||
# required: true
|
required: true
|
||||||
# GATEKEEPER_PASSWORD:
|
GATEKEEPER_PASSWORD:
|
||||||
# required: true
|
required: true
|
||||||
# NPM_TOKEN:
|
NPM_TOKEN:
|
||||||
# required: false
|
required: false
|
||||||
# MINTEL_PRIVATE_TOKEN:
|
MINTEL_PRIVATE_TOKEN:
|
||||||
# required: false
|
required: false
|
||||||
# GITEA_PAT:
|
GITEA_PAT:
|
||||||
# required: false
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
@@ -57,10 +57,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf .next .turbo node_modules || true
|
rm -rf .next .turbo node_modules || true
|
||||||
pnpm install --no-frozen-lockfile --reporter=append-only
|
pnpm install --no-frozen-lockfile --reporter=append-only
|
||||||
- name: 📦 Archive dependencies (Debug)
|
- name: 📦 Archive dependencies
|
||||||
run: |
|
uses: actions/upload-artifact@v3
|
||||||
echo "📦 node_modules size:"
|
with:
|
||||||
du -sh node_modules || echo "No node_modules"
|
name: node_modules
|
||||||
|
path: node_modules
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
static:
|
static:
|
||||||
name: 🔍 Static Analysis
|
name: 🔍 Static Analysis
|
||||||
@@ -80,7 +82,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- name: 📥 Restore dependencies
|
- name: 📥 Restore dependencies
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: node_modules
|
name: node_modules
|
||||||
- name: 🌐 HTML Validation
|
- name: 🌐 HTML Validation
|
||||||
@@ -112,7 +114,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- name: 📥 Restore dependencies
|
- name: 📥 Restore dependencies
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: node_modules
|
name: node_modules
|
||||||
- name: 🔍 Install Chromium
|
- name: 🔍 Install Chromium
|
||||||
@@ -150,7 +152,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- name: 📥 Restore dependencies
|
- name: 📥 Restore dependencies
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: node_modules
|
name: node_modules
|
||||||
- name: 📦 Depcheck
|
- name: 📦 Depcheck
|
||||||
@@ -180,7 +182,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: 10
|
version: 10
|
||||||
- name: 📥 Restore dependencies
|
- name: 📥 Restore dependencies
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: node_modules
|
name: node_modules
|
||||||
- name: 🔍 Install Chromium
|
- name: 🔍 Install Chromium
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
ports:
|
ports:
|
||||||
- "3001:3001"
|
- "3011:3001"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- mcp-network
|
- mcp-network
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ FROM node:20-alpine AS builder
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json pnpm-lock.yaml* ./
|
COPY package.json pnpm-lock.yaml* ./
|
||||||
RUN corepack enable pnpm && pnpm install
|
RUN npm install -g pnpm@10.18.3 && pnpm install
|
||||||
|
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM node:20-bookworm-slim AS builder
|
FROM node:20-bookworm-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN corepack enable pnpm && pnpm install --ignore-workspace
|
RUN npm install -g pnpm@10.18.3 && pnpm install --ignore-workspace
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|||||||
@@ -56,7 +56,17 @@ fi
|
|||||||
# 3. Global Docker Pruning
|
# 3. Global Docker Pruning
|
||||||
echo "🧹 Pruning Docker resources..."
|
echo "🧹 Pruning Docker resources..."
|
||||||
docker system prune -af --filter "until=24h"
|
docker system prune -af --filter "until=24h"
|
||||||
|
|
||||||
|
echo "🧹 Pruning BuildKit builder containers and cache..."
|
||||||
|
# Remove orphaned buildkit containers to release volume locks
|
||||||
|
docker rm -f $(docker ps -aq --filter name=buildx_buildkit_builder) 2>/dev/null || true
|
||||||
|
docker builder prune -af || true
|
||||||
|
docker buildx prune -af || true
|
||||||
|
|
||||||
|
echo "🧹 Pruning Docker volumes..."
|
||||||
docker volume prune -f
|
docker volume prune -f
|
||||||
|
# Force remove dangling buildx state volumes that might bypass standard prune
|
||||||
|
docker volume ls -q | grep buildx | xargs -r docker volume rm 2>/dev/null || true
|
||||||
|
|
||||||
echo "✅ Optimization complete!"
|
echo "✅ Optimization complete!"
|
||||||
df -h /mnt/HC_Volume_104796416
|
df -h /mnt/HC_Volume_104796416
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Configuration
|
# Find registry data dynamically (volume ID might change)
|
||||||
REGISTRY_DATA="/mnt/HC_Volume_104575103/registry-data/docker/registry/v2"
|
REGISTRY_DATA=$(find /mnt -maxdepth 5 -type d -path '*/registry-data/docker/registry/v2' | head -n 1)
|
||||||
|
|
||||||
|
if [ -z "$REGISTRY_DATA" ]; then
|
||||||
|
echo "❌ Registry data directory not found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
KEEP_TAGS=3
|
KEEP_TAGS=3
|
||||||
|
|
||||||
echo "🏥 Starting Aggressive Registry & Docker Maintenance..."
|
echo "🏥 Starting Aggressive Registry & Docker Maintenance..."
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM node:20-bookworm-slim AS builder
|
FROM node:20-bookworm-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN corepack enable pnpm && pnpm install --ignore-workspace
|
RUN npm install -g pnpm@10.18.3 && pnpm install --ignore-workspace
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM node:20-bookworm-slim AS builder
|
FROM node:20-bookworm-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN corepack enable pnpm && pnpm install --ignore-workspace
|
RUN npm install -g pnpm@10.18.3 && pnpm install --ignore-workspace
|
||||||
RUN for dir in $(find /app/node_modules -type d -name "sharp" | grep "node_modules/sharp$"); do \
|
RUN for dir in $(find /app/node_modules -type d -name "sharp" | grep "node_modules/sharp$"); do \
|
||||||
echo "module.exports = {};" > "$dir/lib/index.js" || true; \
|
echo "module.exports = {};" > "$dir/lib/index.js" || true; \
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM node:20-bookworm-slim AS builder
|
FROM node:20-bookworm-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN corepack enable pnpm && pnpm install --ignore-workspace
|
RUN npm install -g pnpm@10.18.3 && pnpm install --ignore-workspace
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM node:20-bookworm-slim AS builder
|
FROM node:20-bookworm-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN corepack enable pnpm && pnpm install --ignore-workspace
|
RUN npm install -g pnpm@10.18.3 && pnpm install --ignore-workspace
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|||||||
Reference in New Issue
Block a user