Skip to content

Commit 627be23

Browse files
ferhimedamineDakera Opsclaude
authored
fix: update deploy-production target to 168.119.60.30
Production server is at 168.119.60.30 (ARM), not 178.104.45.161 (agent machine). Previous workflow was deploying to the agent/MCP machine instead of the actual production server. Updated SERVER_IP, DEPLOY_USER (root), HEALTH_URL, and the deploy script to handle the ARM server's container setup. Co-authored-by: Dakera Ops <ops@dakera.ai> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 82c6a66 commit 627be23

1 file changed

Lines changed: 57 additions & 31 deletions

File tree

.github/workflows/deploy-production.yml

Lines changed: 57 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ concurrency:
1616
cancel-in-progress: false
1717

1818
env:
19-
SERVER_IP: "178.104.45.161"
20-
DEPLOY_USER: "dakera"
21-
HEALTH_URL: "http://178.104.45.161:3300/health"
19+
SERVER_IP: "168.119.60.30"
20+
DEPLOY_USER: "root"
21+
HEALTH_URL: "http://168.119.60.30:3300/health"
2222
REGISTRY: "ghcr.io/dakera-ai/dakera"
2323

2424
jobs:
@@ -52,36 +52,62 @@ jobs:
5252
# Pull new image
5353
docker pull ghcr.io/dakera-ai/dakera:${{ inputs.version }}
5454
55-
# Find and update the running dakera container
56-
CONTAINER=$(docker ps --filter "name=dakera" --format "{{.Names}}" | head -1)
55+
# Find the running dakera container (may be named dakera or dakera-bench)
56+
CONTAINER=$(docker ps --filter "name=dakera" --format "{{.Names}}" | grep -v minio | head -1)
5757
if [ -z "$CONTAINER" ]; then
58-
echo "WARNING: No running dakera container found"
59-
# Try docker-compose if available
60-
if [ -f /opt/dakera/docker-compose.yml ]; then
61-
cd /opt/dakera
62-
DAKERA_IMAGE=ghcr.io/dakera-ai/dakera:${{ inputs.version }} docker compose up -d
63-
else
64-
echo "ERROR: No docker-compose.yml found at /opt/dakera/"
65-
exit 1
66-
fi
58+
echo "WARNING: No running dakera container found — starting fresh"
59+
docker run -d --name dakera-bench \
60+
-p 3300:3300 \
61+
-p 50051:50051 \
62+
-v dakera-bench-data:/app/data \
63+
-v dakera-bench-models:/app/models \
64+
-e DAKERA_HOST=0.0.0.0 \
65+
-e DAKERA_PORT=3300 \
66+
-e DAKERA_STORAGE=filesystem \
67+
-e DAKERA_STORAGE_PATH=/app/data/vectors \
68+
-e DAKERA_ROCKSDB_PATH=/app/data/rocksdb \
69+
-e DAKERA_L1_CACHE_SIZE=536870912 \
70+
-e DAKERA_L2_CACHE_PATH=/app/data/rocksdb \
71+
-e DAKERA_AUTH_ENABLED=true \
72+
-e DAKERA_ROOT_API_KEY="${DAKERA_ROOT_API_KEY:-dk_bench_root_v0_11_28}" \
73+
-e RUST_LOG=info \
74+
-e HF_HOME=/app/models \
75+
-e RUST_BACKTRACE=1 \
76+
--restart unless-stopped \
77+
--health-cmd='curl -f http://localhost:3300/health || exit 1' \
78+
--health-interval=10s \
79+
--health-timeout=5s \
80+
--health-retries=5 \
81+
--health-start-period=30s \
82+
ghcr.io/dakera-ai/dakera:${{ inputs.version }}
6783
else
68-
# Use docker-compose in the service directory
69-
COMPOSE_DIR=$(docker inspect "$CONTAINER" --format '{{ index .Config.Labels "com.docker.compose.project.working_dir" }}' 2>/dev/null || echo "")
70-
if [ -n "$COMPOSE_DIR" ] && [ -d "$COMPOSE_DIR" ]; then
71-
cd "$COMPOSE_DIR"
72-
DAKERA_IMAGE=ghcr.io/dakera-ai/dakera:${{ inputs.version }} docker compose up -d
73-
else
74-
echo "Stopping old container and starting new one..."
75-
# Get the current container's config
76-
PORTS=$(docker port "$CONTAINER" 2>/dev/null || echo "")
77-
docker stop "$CONTAINER"
78-
docker rm "$CONTAINER"
79-
docker run -d --name dakera \
80-
--env-file /opt/dakera/.env \
81-
-p 3300:3000 \
82-
--restart unless-stopped \
83-
ghcr.io/dakera-ai/dakera:${{ inputs.version }}
84-
fi
84+
echo "Replacing container: $CONTAINER"
85+
docker stop "$CONTAINER"
86+
docker rm "$CONTAINER"
87+
docker run -d --name "$CONTAINER" \
88+
-p 3300:3300 \
89+
-p 50051:50051 \
90+
-v dakera-bench-data:/app/data \
91+
-v dakera-bench-models:/app/models \
92+
-e DAKERA_HOST=0.0.0.0 \
93+
-e DAKERA_PORT=3300 \
94+
-e DAKERA_STORAGE=filesystem \
95+
-e DAKERA_STORAGE_PATH=/app/data/vectors \
96+
-e DAKERA_ROCKSDB_PATH=/app/data/rocksdb \
97+
-e DAKERA_L1_CACHE_SIZE=536870912 \
98+
-e DAKERA_L2_CACHE_PATH=/app/data/rocksdb \
99+
-e DAKERA_AUTH_ENABLED=true \
100+
-e DAKERA_ROOT_API_KEY="${DAKERA_ROOT_API_KEY:-dk_bench_root_v0_11_28}" \
101+
-e RUST_LOG=info \
102+
-e HF_HOME=/app/models \
103+
-e RUST_BACKTRACE=1 \
104+
--restart unless-stopped \
105+
--health-cmd='curl -f http://localhost:3300/health || exit 1' \
106+
--health-interval=10s \
107+
--health-timeout=5s \
108+
--health-retries=5 \
109+
--health-start-period=30s \
110+
ghcr.io/dakera-ai/dakera:${{ inputs.version }}
85111
fi
86112
87113
echo "=== Deploy complete ==="

0 commit comments

Comments
 (0)