-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 1003 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: up down ai ssh roles install openhands
up:
docker-compose up -d
down:
docker-compose down -v
docker-compose -f docker-compose.ai.yml down
ai:
docker-compose -f docker-compose.ai.yml up -d
ssh:
docker exec -it postgres /bin/bash
roles:
pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes
pnpm --filter pgpm exec node dist/index.js admin-users add --test --yes
install:
docker exec postgres /sql-bin/install.sh
openhands:
@echo "Starting OpenHands with current directory: $(PWD)"
export SANDBOX_VOLUMES=$(PWD):/workspace:rw; \
docker run -it --rm --pull=always \
-e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.44-nikolaik \
-e SANDBOX_VOLUMES=$$SANDBOX_VOLUMES \
-e LOG_ALL_EVENTS=true \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.openhands:/.openhands \
-p 4444:3000 \
--add-host host.docker.internal:host-gateway \
--name constructive-openhands \
docker.all-hands.dev/all-hands-ai/openhands:0.44