-
Notifications
You must be signed in to change notification settings - Fork 45
/
docker-compose-test.yml
48 lines (46 loc) · 1.24 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
version: '2'
volumes:
db_storage:
driver: local
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1350
services:
db:
image: registry.scc.suse.de/mariadb:10.2
restart: always
volumes:
- db_storage:/var/lib/mysql
extends:
service: base
file: docker-compose-base.yml
rmt_test:
privileged: true
volumes:
- /space/oscbuild:/oscbuild:cached
- ./:/tmp/workdir:ro
build:
context: .
dockerfile: integration/Dockerfile.test
args:
REGCODE: ${REGCODE}
OBS_USER: ${OBS_USER}
OBS_PASSWORD: ${OBS_PASSWORD}
SCC_USERNAME: ${SCC_USERNAME}
SCC_PASSWORD: ${SCC_PASSWORD}
SYSTEM_UUID: ${SYSTEM_UUID}
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
environment:
- MYSQL_HOST=db
- SECRET_KEY_BASE=8ea53ad3bc6c03923e376c8bdd85059c1885524947a7efe53d5e9c9d4e39861106ffd6a2ece82b803072ed701e6c960bade91644979e679416c5f255007237ae
depends_on:
- db
extends:
service: base
file: docker-compose-base.yml
command: /bin/bash -c 'bundle.ruby2.5 exec rails db:migrate'