forked from openSUSE/openSUSE-release-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.47 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
48
49
50
51
52
53
54
55
56
version: "3.4"
x-obs: &obs
image: registry.opensuse.org/opensuse/tools/images/containers155/osrt_miniobs:latest
x-testenv: &testenv
image: registry.opensuse.org/opensuse/tools/images/containers_tumbleweed/osrt_testenv_tumbleweed:latest
volumes:
- "../..:/code"
privileged: true
services:
db:
<<: *obs
command: /usr/lib/mysql/mysql-systemd-helper start
cache:
<<: *obs
command: /usr/bin/memcached -u memcached
api:
<<: *obs
command: >
chroot --userspec=wwwrun / /bin/bash -c "cd /srv/www/obs/api &&
RAILS_ENV=production ./bin/rake ts:rebuild &&
RAILS_ENV=production ./script/delayed_job.api.rb --queues=staging,quick start &&
./bin/bundle exec rails s -e production"
depends_on:
- db
- cache
- srcserver
- repserver
- serviceserver
ports:
- "0.0.0.0:${OSRT_EXPOSED_OBS_PORT:-3000}:3000"
srcserver:
<<: *obs
command: chroot --userspec=obsrun / /usr/lib/obs/server/bs_srcserver
repserver:
<<: *obs
command: chroot --userspec=obsrun / /usr/lib/obs/server/bs_repserver
serviceserver:
<<: *obs
command: /usr/lib/obs/server/bs_service
smtp:
<<: *testenv
command: python3 /code/dist/ci/smtp/eml-server.py
test:
<<: *testenv
depends_on:
- api
- smtp
command: /code/dist/ci/docker-compose-test.sh ${CI_NODE_INDEX}
cap_add:
- SYS_PTRACE
flaker:
<<: *testenv
command: /code/dist/ci/docker-compose-flaker.sh