This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.test.yml
153 lines (151 loc) · 3.97 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
version: "2"
services:
scarlett_master:
build:
context: .
dockerfile: Dockerfile
args:
SCARLETT_ENABLE_SSHD: 0
SCARLETT_ENABLE_DBUS: 'true'
SCARLETT_BUILD_GNOME: 'false'
TRAVIS_CI: 'true'
TRAVIS_CI_PYTEST: 'true'
TRAVIS_CI_RUN_PYTEST: 'true'
TRAVIS_CI_SKIP_PYTEST: 'true'
STOP_AFTER_GOSS_JHBUILD: 'false'
STOP_AFTER_GOSS_GTK_DEPS: 'false'
environment:
SERVER_LOG_MINIMAL: 1
SERVER_APP_NAME: scarlett-master
COMPOSE_PROJECT_NAME: scarlett-master
S6_KILL_FINISH_MAXTIME: 1
S6_KILL_GRACETIME: 1
SERVER_WORKER_PROCESSES: 1
# NOTE: This enables SSHD access inside of the container for dev purposes
# 1 = false
# 0 = true
SCARLETT_ENABLE_SSHD: 0
SCARLETT_ENABLE_DBUS: 'true'
SCARLETT_BUILD_GNOME: 'true'
TRAVIS_CI: 'true'
TRAVIS_CI_PYTEST: 'true'
STOP_AFTER_GOSS_JHBUILD: 'false'
STOP_AFTER_GOSS_GTK_DEPS: 'false'
volumes:
- ./:/home/pi/dev/bossjones-github/scarlett_os:rw
ports:
- "2222:22"
# command: "jhbuild run -- python setup.py test"
# command: "ls -lta"
# command: jhbuild run -- coverage run -- setup.py test
# command: env
# unit:
# extends:
# service: scarlett_master
# volumes_from:
# - scarlett_master
# command: py.test tests/unit
# disambiguation:
# extends:
# service: scarlett_master
# command: py.test tests/integration/disambiguation
# volumes_from:
# - scarlett_master
# links:
# - database
# - indexer
# - rabbitmq
# - redis
# depends_on:
# - worker
# workflows:
# extends:
# service: scarlett_master
# command: py.test tests/integration/workflows
# volumes_from:
# - scarlett_master
# links:
# - database
# - indexer
# - rabbitmq
# - redis
# depends_on:
# - worker
# integration:
# extends:
# service: scarlett_master
# command: py.test tests/integration --ignore tests/integration/disambiguation --ignore tests/integration/workflows
# volumes_from:
# - scarlett_master
# links:
# - database
# - indexer
# - rabbitmq
# - redis
# depends_on:
# - worker
# acceptance:
# extends:
# service: scarlett_master
# command: py.test --driver Remote --host selenium --port 4444 --capability browserName firefox --html=selenium-report.html tests/acceptance
# volumes_from:
# - scarlett_master
# links:
# - database
# - indexer
# - rabbitmq
# - redis
# - selenium
# depends_on:
# - web
# - worker
# environment:
# - SERVER_NAME=web:5000
# web:
# extends:
# service: scarlett_master
# command: gunicorn -b 0.0.0.0:5000 -t 3600 --access-logfile "-" inspirehep.wsgi_with_coverage
# volumes_from:
# - scarlett_master
# links:
# - database
# - indexer
# - rabbitmq
# - redis
# environment:
# - APP_SERVER_NAME=web:5000
# worker:
# container_name: inspirehep-test-worker
# extends:
# service: scarlett_master
# command: celery worker -E -A inspirehep.celery --loglevel=INFO --purge
# volumes_from:
# - scarlett_master
# links:
# - database
# - indexer
# - rabbitmq
# - redis
# redis:
# container_name: inspirehep-test-redis
# image: redis
# indexer:
# container_name: inspirehep-test-indexer
# extends:
# file: services.yml
# service: indexer
# rabbitmq:
# container_name: inspirehep-test-rabbitmq
# image: rabbitmq
# database:
# container_name: inspirehep-test-database
# extends:
# file: services.yml
# service: database
# selenium:
# image: selenium/standalone-firefox:2.53.1-beryllium
# scarlett_master:
# container_name: inspirehep-test-scarlett_master
# extends:
# file: services.yml
# service: scarlett_master