Vermeide Docker-Hub-Timeouts beim Dev-Build durch GHCR-Basisimage.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0b3af2dee4
commit
e1800e7b0f
4 files changed
+7
-7
No files matched your search
+4
-2
@@ -66,6 +66,8 @@ Watchtower bleibt aus.
|
||||
| `deploy-prod.yml` | Push `main` | Deploy nach `~/docker/buyingagent`, Health `localhost:8006` |
|
||||
| `test.yml` | nach Dev-Deploy bzw. Push `develop` | nicht-schreibender Smoke gegen `/health/live` und `/health/ready` |
|
||||
|
||||
Der API-Build nutzt `ghcr.io` (nicht Docker Hub). `docker compose build --pull=false` verwendet vorhandene Basis-Images und vermeidet IPv6-Timeouts gegen `auth.docker.io`.
|
||||
|
||||
---
|
||||
|
||||
## Manuelles Deploy
|
||||
@@ -74,14 +76,14 @@ Watchtower bleibt aus.
|
||||
# Development
|
||||
cd ~/docker/buyingagent-dev
|
||||
git fetch origin develop && git reset --hard origin/develop
|
||||
docker compose -f docker-compose.dev-env.yml build --no-cache api
|
||||
docker compose -f docker-compose.dev-env.yml build --pull=false api
|
||||
BUYING_AGENT_API_PORT=8095 docker compose -f docker-compose.dev-env.yml up -d --wait
|
||||
curl -sf http://localhost:8095/health/ready
|
||||
|
||||
# Production
|
||||
cd ~/docker/buyingagent
|
||||
git fetch origin main && git reset --hard origin/main
|
||||
BUYING_AGENT_API_BIND=0.0.0.0 BUYING_AGENT_API_PORT=8006 docker compose build --no-cache api
|
||||
BUYING_AGENT_API_BIND=0.0.0.0 BUYING_AGENT_API_PORT=8006 docker compose build --pull=false api
|
||||
BUYING_AGENT_API_BIND=0.0.0.0 BUYING_AGENT_API_PORT=8006 docker compose up -d --wait
|
||||
curl -sf http://localhost:8006/health/ready
|
||||
```
|
||||
Reference in new issue
Block a user