diff --git a/compose.sh b/compose.sh index 9901812..255c94a 100755 --- a/compose.sh +++ b/compose.sh @@ -46,14 +46,17 @@ if [ ! -f "$COMPOSE_FILE" ]; then fi # Detect stale compose file from pre-migration clones (before March 2026). -# Old versions used ghcr.io which requires auth. Current file uses Docker Hub. -if grep -q 'ghcr\.io' "$COMPOSE_FILE" 2>/dev/null; then +# The current compose file uses "image:" to pull pre-built images from GHCR. +# Old versions had "build:" directives that compile from local source — much +# slower and will NOT pick up new releases. +if grep -q '^\s*build:' "$COMPOSE_FILE" 2>/dev/null; then echo "" echo "================================================================" echo " [!] WARNING: Your docker-compose.yml is outdated." echo "" - echo " It references ghcr.io which may require authentication." - echo " The current version uses Docker Hub for anonymous pulls." + echo " It contains 'build:' directives, which means Docker is" + echo " compiling from local source instead of pulling pre-built" + echo " images. You will NOT receive updates this way." echo "" echo " Fix: re-clone the repository:" echo " cd .. && rm -rf $(basename "$SCRIPT_DIR")" diff --git a/docker-compose.yml b/docker-compose.yml index fc2a420..0762682 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,6 @@ services: backend: - image: bigbodycobain/shadowbroker-backend:latest - build: - context: . - dockerfile: backend/Dockerfile + image: ghcr.io/bigbodycobain/shadowbroker-backend:latest container_name: shadowbroker-backend ports: - "${BIND:-127.0.0.1}:8000:8000" @@ -36,9 +33,7 @@ services: cpus: '2' frontend: - image: bigbodycobain/shadowbroker-frontend:latest - build: - context: ./frontend + image: ghcr.io/bigbodycobain/shadowbroker-frontend:latest container_name: shadowbroker-frontend ports: - "${BIND:-127.0.0.1}:3000:3000" diff --git a/helm/chart/values.yaml b/helm/chart/values.yaml index 256bcb4..05a62f4 100644 --- a/helm/chart/values.yaml +++ b/helm/chart/values.yaml @@ -13,7 +13,7 @@ shadowbroker: runAsGroup: 1001 image: pullPolicy: Always - repository: bigbodycobain/shadowbroker-backend + repository: ghcr.io/bigbodycobain/shadowbroker-backend tag: latest env: AIS_API_KEY: @@ -41,7 +41,7 @@ shadowbroker: runAsGroup: 1001 image: pullPolicy: Always - repository: bigbodycobain/shadowbroker-frontend + repository: ghcr.io/bigbodycobain/shadowbroker-frontend tag: latest env: diff --git a/start.bat b/start.bat index f709ce0..0d25b0e 100644 --- a/start.bat +++ b/start.bat @@ -7,14 +7,15 @@ echo =================================================== echo. :: Check for stale docker-compose.yml from pre-migration clones -findstr /C:"ghcr.io" docker-compose.yml >nul 2>&1 +findstr /R /C:"build:" docker-compose.yml >nul 2>&1 if %errorlevel% equ 0 ( echo. echo ================================================================ echo [!] WARNING: Your docker-compose.yml is outdated. echo. - echo It references ghcr.io which may require authentication. - echo The current version uses Docker Hub for anonymous pulls. + echo It contains 'build:' directives, which means Docker will + echo compile from local source instead of pulling pre-built images. + echo You will NOT receive updates this way. echo. echo If you use Docker, re-clone the repository: echo git clone https://github.com/BigBodyCobain/Shadowbroker.git diff --git a/start.sh b/start.sh index 4ab2a99..42b4096 100644 --- a/start.sh +++ b/start.sh @@ -10,13 +10,14 @@ echo "" # Check for stale docker-compose.yml from pre-migration clones SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" -if [ -f "$SCRIPT_DIR/docker-compose.yml" ] && grep -q 'ghcr\.io' "$SCRIPT_DIR/docker-compose.yml" 2>/dev/null; then +if [ -f "$SCRIPT_DIR/docker-compose.yml" ] && grep -q '^\s*build:' "$SCRIPT_DIR/docker-compose.yml" 2>/dev/null; then echo "" echo "================================================================" echo " [!] WARNING: Your docker-compose.yml is outdated." echo "" - echo " It references ghcr.io which may require authentication." - echo " The current version uses Docker Hub for anonymous pulls." + echo " It contains 'build:' directives, which means Docker will" + echo " compile from local source instead of pulling pre-built images." + echo " You will NOT receive updates this way." echo "" echo " If you use Docker, re-clone the repository:" echo " git clone https://github.com/BigBodyCobain/Shadowbroker.git"