Skip to content

Commit bfbf90a

Browse files
committed
Tweak some docker file details
1 parent 86a515a commit bfbf90a

File tree

11 files changed

+30
-16
lines changed

11 files changed

+30
-16
lines changed

.github/workflows/python-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
with:
100100
context: .
101101
file: ./Dockerfile
102+
platforms: linux/amd64,linux/arm64,linux/arm/v7
102103
push: true
103104
tags: |
104105
andrewbrookins510/agent-memory-server:latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ENTRYPOINT []
2929
EXPOSE 8000
3030

3131
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
32-
CMD curl -f http://localhost:8000/health || exit 1
32+
CMD curl -f http://localhost:8000/v1/health || exit 1
3333

3434
# Disable auth by default. Can be overridden with environment variable.
3535
ENV DISABLE_AUTH=true

agent-memory-client/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Agent Memory Client
22

3-
A Python client library for the [Agent Memory Server](https://github.com/your-org/agent-memory-server) REST API, providing comprehensive memory management capabilities for AI agents and applications.
3+
A Python client library for the [Agent Memory Server](https://github.com/redis-developer/agent-memory-server) REST API, providing comprehensive memory management capabilities for AI agents and applications.
44

55
## Features
66

@@ -309,10 +309,10 @@ Apache 2.0 License - see [LICENSE](LICENSE) file for details.
309309

310310
## Contributing
311311

312-
Contributions are welcome! Please see the [main repository](https://github.com/your-org/agent-memory-server) for contribution guidelines.
312+
Contributions are welcome! Please see the [main repository](https://github.com/redis-developer/agent-memory-server) for contribution guidelines.
313313

314314
## Links
315315

316-
- [Agent Memory Server](https://github.com/your-org/agent-memory-server) - The server this client connects to
316+
- [Agent Memory Server](https://github.com/redis-developer/agent-memory-server) - The server this client connects to
317317
- [Documentation](https://agent-memory-client.readthedocs.io) - Full API documentation
318-
- [Issues](https://github.com/your-org/agent-memory-client/issues) - Bug reports and feature requests
318+
- [Issues](https://github.com/redis-developer/agent-memory-client/issues) - Bug reports and feature requests

agent_memory_server/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import uvicorn
66
from fastapi import FastAPI
77

8+
from agent_memory_server import __version__
89
from agent_memory_server.api import router as memory_router
910
from agent_memory_server.auth import verify_auth_config
1011
from agent_memory_server.config import settings
@@ -148,7 +149,11 @@ async def lifespan(app: FastAPI):
148149

149150

150151
# Create FastAPI app
151-
app = FastAPI(title="Redis Agent Memory Server", lifespan=lifespan)
152+
app = FastAPI(
153+
title="Redis Agent Memory Server",
154+
lifespan=lifespan,
155+
version=__version__,
156+
)
152157

153158

154159
app.include_router(health_router)

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
volumes:
2424
- ./agent_memory_server:/app/agent_memory_server
2525
healthcheck:
26-
test: [ "CMD", "curl", "-f", "http://localhost:8000/health" ]
26+
test: [ "CMD", "curl", "-f", "http://localhost:8000/v1/health" ]
2727
interval: 30s
2828
timeout: 10s
2929
retries: 3

docs/development.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Development
22

3+
## Running the servers locally
4+
5+
The easiest way to run the API server(s) is with Docker Compose:
6+
7+
```
8+
$ docker-compose up
9+
```
10+
311
## Running Tests
412

513
```bash

manual_oauth_qa/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ print(f"Response: {response.json()}")
243243

244244
### Expected Behaviors
245245

246-
- [ ] **Health endpoint works without auth**: `GET /health` returns 200
246+
- [ ] **Health endpoint works without auth**: `GET /v1/health` returns 200
247247
- [ ] **Authenticated endpoints require token**: Return 401 without `Authorization` header
248248
- [ ] **Invalid tokens rejected**: Return 401 with malformed or expired tokens
249249
- [ ] **Valid tokens accepted**: Return 200/201 with proper Auth0 JWT tokens

manual_oauth_qa/manual_auth0_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def run_comprehensive_test(self):
163163

164164
# Step 2: Test health endpoint (should work without auth)
165165
logger.info("\n📋 Testing health endpoint (no auth required)")
166-
health_result = self.test_endpoint("GET", "/health")
166+
health_result = self.test_endpoint("GET", "/v1/health")
167167

168168
# Step 3: Test authenticated endpoints
169169
logger.info("\n🔐 Testing authenticated endpoints")

manual_oauth_qa/quick_setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636

3737
# Check Redis connection
3838
echo "🔍 Checking Redis connection..."
39-
if redis-cli ping > /dev/null 2>&1; then
39+
if redis-cli ping >/dev/null 2>&1; then
4040
echo "✅ Redis is running"
4141
else
4242
echo "❌ Redis is not running. Please start Redis:"
@@ -76,8 +76,8 @@ echo "✅ Auth0 configuration looks good"
7676
echo "🔍 Testing Auth0 token endpoint..."
7777
DOMAIN=$(echo $OAUTH2_ISSUER_URL | sed 's|https://||' | sed 's|/$||')
7878
TOKEN_RESPONSE=$(curl -s -X POST "https://$DOMAIN/oauth/token" \
79-
-H "Content-Type: application/json" \
80-
-d "{
79+
-H "Content-Type: application/json" \
80+
-d "{
8181
\"client_id\": \"$AUTH0_CLIENT_ID\",
8282
\"client_secret\": \"$AUTH0_CLIENT_SECRET\",
8383
\"audience\": \"$OAUTH2_AUDIENCE\",
@@ -95,7 +95,7 @@ fi
9595
# Check if memory server is running
9696
echo "🔍 Checking memory server..."
9797
PORT=${PORT:-8000}
98-
if curl -s "http://localhost:$PORT/health" > /dev/null 2>&1; then
98+
if curl -s "http://localhost:$PORT/v1/health" >/dev/null 2>&1; then
9999
echo "✅ Memory server is running on port $PORT"
100100

101101
echo ""

manual_oauth_qa/setup_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def check_memory_server():
118118
import httpx
119119

120120
port = os.getenv("PORT", "8000")
121-
response = httpx.get(f"http://localhost:{port}/health", timeout=5.0)
121+
response = httpx.get(f"http://localhost:{port}/v1/health", timeout=5.0)
122122
if response.status_code == 200:
123123
print(f"✅ Memory server running on port {port}")
124124
return True

manual_oauth_qa/test_auth0.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def run_comprehensive_test(self):
163163

164164
# Step 2: Test health endpoint (should work without auth)
165165
logger.info("\n📋 Testing health endpoint (no auth required)")
166-
health_result = self.test_endpoint("GET", "/health")
166+
health_result = self.test_endpoint("GET", "/v1/health")
167167

168168
# Step 3: Test authenticated endpoints
169169
logger.info("\n🔐 Testing authenticated endpoints")
@@ -274,7 +274,7 @@ def main():
274274

275275
# Check if memory server is running
276276
try:
277-
response = httpx.get(f"{MEMORY_SERVER_URL}/health", timeout=5.0)
277+
response = httpx.get(f"{MEMORY_SERVER_URL}/v1/health", timeout=5.0)
278278
if response.status_code != 200:
279279
print(f"❌ Memory server not responding correctly at {MEMORY_SERVER_URL}")
280280
print("Please start the memory server first:")

0 commit comments

Comments
 (0)