Skip to content

Commit d1adaf2

Browse files
committed
docker part docs
1 parent def9a47 commit d1adaf2

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

DOCKER_TEST_README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Docker Testing
2+
3+
## Quick Start
4+
5+
```bash
6+
# Start database and container
7+
docker compose up -d
8+
9+
# Run tests
10+
docker compose run --rm client python test_trained_inference.py
11+
docker compose run --rm client python test_video_inference.py superanimal_quadruped
12+
13+
# Or use Makefile
14+
make test-trained
15+
make test-pretrained
16+
```
17+
18+
## Configuration
19+
20+
Create `.env` file (optional):
21+
22+
```env
23+
DJ_PASS=simple
24+
DB_PORT=3306
25+
DATABASE_PREFIX=test_
26+
```
27+
28+
## Volumes
29+
30+
| Mount | Container Path | Description |
31+
|-------|----------------|-------------|
32+
| `./test_videos` | `/app/data` | Test videos |
33+
| `.` | `/app` | Project directory |
34+
| `./dj_local_conf.json` | `/app/dj_local_conf.json` | Database config |
35+
36+
## Troubleshooting
37+
38+
| Issue | Solution |
39+
|-------|----------|
40+
| Database connection | `docker compose ps` to check health |
41+
| Permission issues | `sudo chown -R $USER:$USER test_videos/` |
42+
| Code changes | `docker compose build` |
43+
| Clean up | `docker compose down -v` |
44+
45+
## Development
46+
47+
```bash
48+
make shell # Interactive shell
49+
```

0 commit comments

Comments
 (0)