-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
170 lines (165 loc) · 3.47 KB
/
docker-compose-test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# todo: simplify or load minimum test info needed from local files
# for teardown and startup and to remove volumes
services:
httpd:
build: apache
links:
- "tomcat-pn"
- "xsugar"
- "fuseki"
- "solr"
- "sosol"
volumes:
- repo-test:/srv
ports:
- "8000:80"
depends_on:
- xsugar
- tomcat-pn
- solr
- fuseki
- indexer
- sosol
sosol:
build: sosol
ports:
- "8080:8080"
volumes:
- repo-test:/srv
- ./sosol-compose:/opt/sosol-compose
command: /opt/sosol-compose/migrate-and-copy.sh
links:
- "xsugar"
- "postgres"
depends_on:
- postgres
- repo_clone
- xsugar
repo_clone:
build: repo_clone
volumes:
- ./:/docker-compose
- repo-test:/srv
xsugar:
build: xsugar
navigator:
build: navigator-compose
depends_on:
- repo_clone
- fuseki
volumes:
- ./navigator:/navigator
- repo-test:/srv
- solr_data-test:/solr
links:
- "fuseki"
env_file:
- .env
indexer:
build:
context: indexer
args:
INDEXING_ARGS: lein run generate-pages
depends_on:
navigator:
condition: service_completed_successfully
fuseki:
condition: service_started
solr:
condition: service_started
volumes:
- ./epidoc-xslt:/epidoc-xslt
- repo-test:/srv
links:
- "fuseki"
- "solr"
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
fuseki:
# built from https://github.com/dcthree/docker-fuseki
image: ryanfb/fuseki
volumes:
- repo-test:/srv
- fuseki_data-test:/data
cpu_count: 2
environment:
- OPTS=--port=8090 --tdb2 --loc=/data --update /pi
- JVM_ARGS=-Xmx8192M
- JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
ports:
- "8090:8090"
postgres:
image: postgres:13
environment:
- POSTGRES_USER=papyri
- POSTGRES_HOST_AUTH_METHOD=trust
solr:
build: solr
ports:
- "8983:8983"
volumes:
- solr_data-test:/opt/solr/server/solr
- type: bind
source: ./selenium-ruby/backups
target: /opt/solr/server/solr/backups
environment:
- SOLR_JAVA_MEM=-Xms1G -Xmx8G
- SOLR_BACKUP_URL
- USE_SOLR_BACKUPS
command: /bin/sh -c "/opt/solr/server/solr/backups/solr-backup.sh"
depends_on:
navigator:
condition: service_completed_successfully
tomcat-pn:
build: tomcat-pn
links:
- "postgres"
- "fuseki"
volumes:
- repo-test:/srv
depends_on:
navigator:
condition: service_completed_successfully
selenium_ui_tests:
image: ${build_tag}
build: selenium-ruby
depends_on:
httpd:
condition: service_started
selenium:
condition: service_healthy
indexer:
condition: service_completed_successfully
ports:
- "1111:1111"
links:
- "selenium"
- "httpd"
environment:
- SELENIUM_HOST=selenium
- SELENIUM_PORT=4444
selenium:
image: selenium/standalone-chromium:4.24
links:
- "httpd"
# Test to see if the service is healthy
# Testing here b/c installing curl on apache2.2(httpd) is a pain
# bc the package repos don't exist anymore
healthcheck:
test: ["CMD", "curl", "-f", "http://httpd:80/"]
interval: 45s
timeout: 15s
retries: 5
ports:
- "4444:4444"
- "7900:7900"
shm_size: 2g
networks:
selenium-net:
driver: bridge
volumes:
repo-test:
fuseki_data-test:
solr_data-test: