-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.3 KB
/
docker-compose.yml
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
47
#*********************************************************************
# Copyright 2019 Regents of the University of California
# All rights reserved
#*********************************************************************
version: '3.9'
networks:
mynet:
volumes:
downloads:
services:
mrt-integ-tests:
container_name: mrt-integ-tests
image: ${ECR_REGISTRY}/mrt-integ-tests
build:
context: .
dockerfile: Dockerfile
volumes:
- type: bind
source: ./config/test_config.yml
target: /config/test_config.yml
- downloads:/tmp/downloads
environment:
#uncomment the following when running rspec with a non-headless chrome
CHROME_URL: http://chrome:4444/wd/hub
SSM_ROOT_PATH: ${SSM_ROOT_PATH:-/uc3/mrt/dev/}
HOSTNAME: ${HOSTNAME}.cdlib.org
stdin_open: true
tty: true
networks:
mynet:
depends_on:
- chrome
chrome:
container_name: chrome
image: ${ECR_REGISTRY}/mrt-it-chrome
# build a docker image that will make the downloads folder accessible (permissions) as a volume mount
build:
context: chrome-driver
dockerfile: Dockerfile
args:
ECR_REGISTRY: ${ECR_REGISTRY}
shm_size: '2gb'
networks:
mynet:
volumes:
- /dev/shm:/dev/shm
- downloads:/home/seluser/Downloads