-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
46 lines (45 loc) · 1.18 KB
/
docker-compose.yaml
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
36
37
38
39
40
41
42
43
44
45
46
volumes:
gmfs-data-vol:
gmfs-git-vol:
services:
# Main Service
gm-file-server:
image: glidein-manager-file-server
build: .
environment:
- [email protected]:mwestphall/glidein-manager-test-upstream.git
- SSH_KEY=/mnt/ssh/id_rsa
- API_PREFIX=/api
volumes:
- ./volumes/ssh/:/mnt/ssh:ro
- gmfs-git-vol:/var/lib/git
- gmfs-data-vol:/etc/gm-file-server/data
ports:
- "8080:80"
healthcheck:
test: "curl --fail http://localhost:80/api/public || exit 1"
interval: 10s
timeout: 5s
retries: 5
start_period: 0s
# Tests Container
pytests:
profiles: ["pytests"]
build:
context: .
dockerfile: tests.Dockerfile
env_file:
- tests.env
image: glidein-manager-tests
depends_on:
gm-file-server:
condition: service_healthy
environment:
- API_PREFIX=/api
- GM_ADDRESS=http://gm-file-server
- CALLBACK_ADDRESS=http://pytests:8089/public/challenge/response
- CLIENT_NAME=pytests
working_dir: /srv/app
volumes:
- gmfs-data-vol:/etc/gm-file-server/data
entrypoint: ['python3', '-m', 'pytest', '-s', 'test/${TEST_PKG}']