-
-
Notifications
You must be signed in to change notification settings - Fork 496
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 1000 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 1000 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
services:
test:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
# Persist tox environments to speed up subsequent runs
- tox-cache:/app/.tox
environment:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
# Override command to run bash for interactive use
# Use: docker compose run --rm test
# Or run specific tests: docker compose run --rm test sh -c "redis-server --daemonize yes && tox -e py312-django51-pil"
command: sh -c "redis-server --daemonize yes && tox"
# Replicate GitHub Actions CI environment
ci:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- tox-cache:/app/.tox
environment:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
# Test only the backends used in CI (excludes dynamodb, pgmagick, vipsthumbnail)
- TARGET=${TARGET:-pil}
- DJANGO=${DJANGO:-5.1}
command: sh -c "redis-server --daemonize yes && tox -v"
volumes:
tox-cache: