mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-28 22:18:21 +02:00
chore: revert docker-compose to GHCR registry
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+7
-4
@@ -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")"
|
||||
|
||||
+2
-7
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user