Skip to content

Commit 8bc8f99

Browse files
committed
chore: standardize default port to 8080 and finalize project renaming
1 parent 4e5a8fb commit 8bc8f99

19 files changed

+209
-188
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ ENV VIRTUAL_ENV=/app/.venv \
6161
PYTHONUNBUFFERED=1 \
6262
AGENT_DIR=/app/src \
6363
HOST=0.0.0.0 \
64-
PORT=8000
64+
PORT=8080
6565

6666
# Switch to non-root user
6767
USER app
6868

69-
# Expose port (default 8000)
70-
EXPOSE 8000
69+
# Expose port (default 8080)
70+
EXPOSE 8080
7171

7272
# Set the entrypoint
7373
ENTRYPOINT ["/app/entrypoint.sh"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ uv sync
4242
uv run python -m agent_foundation.server
4343
```
4444

45-
Then open `http://127.0.0.1:8000`.
45+
Then open `http://127.0.0.1:8080`.
4646

4747
## Deployment (Docker)
4848

conductor/workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ All tasks follow a strict lifecycle:
9696
9797
**Manual Verification Steps:**
9898
1. **Ensure the server is running:** `uv run python -m agent_foundation.server`
99-
2. **Execute the following command in your terminal:** `curl -X GET http://localhost:8000/health`
99+
2. **Execute the following command in your terminal:** `curl -X GET http://localhost:8080/health`
100100
3. **Confirm that you receive:** A JSON response with a status of `{"status": "ok"}`.
101101
```
102102

docs/base-infra/docker-compose-workflow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ SERVE_WEB_INTERFACE=true
147147

148148
### Port already in use
149149
```bash
150-
# Check what's using port 8000
151-
lsof -i :8000
150+
# Check what's using port 8080
151+
lsof -i :8080
152152
153153
# Stop the conflicting process or change PORT in .env
154154
PORT=8001
@@ -167,7 +167,7 @@ DOCKER_BUILDKIT=1 docker build -t your-agent-name:latest .
167167
# Run directly
168168
docker run \
169169
-v ./data:/app/data:ro \
170-
-p 127.0.0.1:8000:8000 \
170+
-p 127.0.0.1:8080:8080 \
171171
--env-file .env \
172172
your-agent-name:latest
173173
```

docs/base-infra/dockerfile-strategy.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ ENV VIRTUAL_ENV=/app/.venv \
266266
PYTHONUNBUFFERED=1 \
267267
AGENT_DIR=/app/src \
268268
HOST=0.0.0.0 \
269-
PORT=8000
269+
PORT=8080
270270
```
271271
**What:** Configure runtime environment
272272
**Why:**
@@ -277,7 +277,7 @@ ENV VIRTUAL_ENV=/app/.venv \
277277
| `PATH="/app/.venv/bin:$PATH"` | Make venv binaries available (python, uvicorn) |
278278
| `PYTHONUNBUFFERED=1` | Don't buffer stdout/stderr (better logs in Docker) |
279279
| `HOST=0.0.0.0` | Explicitly bind all interfaces for containers (server.py defaults to 127.0.0.1) |
280-
| `PORT=8000` | Explicitly set default port (matches EXPOSE and server.py default) |
280+
| `PORT=8080` | Explicitly set default port (matches EXPOSE and server.py default) |
281281
| `AGENT_DIR=/app/src` | Override agent directory path (see AGENT_DIR section below) |
282282

283283
---
@@ -330,9 +330,9 @@ USER app
330330

331331
### Expose Port
332332
```dockerfile
333-
EXPOSE 8000
333+
EXPOSE 8080
334334
```
335-
**What:** Document that container listens on port 8000
335+
**What:** Document that container listens on port 8080
336336
**Why:**
337337
- Documentation only (doesn't actually publish port)
338338
- Tools like docker-compose read this for defaults

docs/base-infra/environment-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ Complete reference for all environment variables used in this project.
5151
- **Purpose:** Server bind address (use `0.0.0.0` for Docker)
5252

5353
**PORT**
54-
- **Default:** `8000`
54+
- **Default:** `8080`
5555
- **Purpose:** Server listening port
5656

5757
### Feature Flags
5858

5959
**SERVE_WEB_INTERFACE**
6060
- **Default:** `FALSE`
61-
- **Purpose:** Enables ADK web UI at http://127.0.0.1:8000
61+
- **Purpose:** Enables ADK web UI at http://127.0.0.1:8080
6262
- **Options:** `TRUE` / `FALSE`
6363

6464
**RELOAD_AGENTS**

docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Observability (Optional):
3131
Optional:
3232

3333
- `HOST`: server bind host (default: `127.0.0.1`)
34-
- `PORT`: server port (default: `8000`)
34+
- `PORT`: server port (default: `8080`)
3535
- `LOG_LEVEL`: Logging verbosity (default: `INFO`)
3636
- `SERVE_WEB_INTERFACE`: Whether to serve the ADK web UI (default: `false`)
3737

init_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
3. Derives package name (my-agent → my_agent)
2424
4. Replaces template names with yours:
2525
- agent_foundation → your_package_name
26-
- agent-foundation → your-repo-name
27-
- template-owner/agent-foundation → your-owner/your-repo
26+
- google-adk-on-bare-metal → your-repo-name
27+
- QueryPlanner/google-adk-on-bare-metal → your-owner/your-repo
2828
5. Renames src/agent_foundation/ → src/{package_name}/
2929
6. Updates imports, config, and docs in all files
3030
7. Updates GitHub Actions badge URLs

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[project]
2-
name = "agent-foundation"
2+
name = "google-adk-on-bare-metal"
33
version = "0.8.0"
4-
description = "Opinionated, production-ready LLM Agent deployment with enterprise-grade infrastructure"
4+
description = "Production-ready template for building and deploying AI agents using Google ADK, LiteLLM, and Postgres on self-hosted infrastructure"
55
readme = "README.md"
66
authors = [
7-
{ name = "doug", email = "110487462+doughayden@users.noreply.github.com" }
7+
{ name = "queryplanner", email = "queryplanner@users.noreply.github.com" }
88
]
99
requires-python = ">=3.13,<3.14"
1010
dependencies = [
@@ -43,6 +43,9 @@ dev = [
4343
requires = ["uv_build>=0.8.21,<0.9.0"]
4444
build-backend = "uv_build"
4545

46+
[tool.uv.build-backend]
47+
module-name = "agent_foundation"
48+
4649
[tool.ruff]
4750
src = ["src"]
4851
target-version = "py313"

src/agent_foundation/agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import logging
44
import os
5+
from typing import Any
56

67
from google.adk.agents import LlmAgent
78
from google.adk.apps import App
@@ -23,7 +24,7 @@
2324

2425
# Determine model configuration
2526
model_name = os.getenv("ROOT_AGENT_MODEL", "gemini-2.5-flash")
26-
model = model_name
27+
model: Any = model_name
2728

2829
# Explicitly use LiteLlm for OpenRouter or other provider-prefixed models
2930
# that might not be auto-detected by ADK's registry.

0 commit comments

Comments
 (0)