-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (38 loc) · 1.1 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
volumes:
gmfs-data-vol:
gmfs-git-vol:
services:
# Main Service
gm-file-server:
image: hub.opensciencegrid.org/mwestphall/glidein-manager-file-server
environment:
- [email protected]:mwestphall/glidein-manager-test-upstream.git
- SSH_KEY=/mnt/ssh/id_rsa
- API_PREFIX=/api
volumes:
- ./volumes/ssh/:/mnt/ssh:ro
- ./volumes/config/:/etc/gm-file-server/config:ro
- ./volumes/secrets/:/etc/gm-file-server/secrets: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
test-client:
image: glidein-manager-client
profiles: ['test']
build: .
depends_on:
gm-file-server:
condition: service_healthy
entrypoint: ['go','test','./test']
test-client-concurrent:
image: glidein-manager-client
build: .
profiles: ['concurrent']
entrypoint: ['go','test','-v', '-run', 'TestSimultaneousStartup', './test']