-
Notifications
You must be signed in to change notification settings - Fork 36
/
docker-compose.test.yml
49 lines (48 loc) · 1.49 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
version: '3.4'
services:
vmaas_database:
container_name: vmaas-database
image: docker.io/library/postgres:16
restart: unless-stopped
environment:
POSTGRES_DB: vmaas
POSTGRES_USER: vmaas_admin
POSTGRES_PASSWORD: vmaas_admin_pwd
ports:
- 5432:5432
test:
container_name: vmaas-test
hostname: vmaas-test
build:
context: .
dockerfile: Dockerfile
args:
VAR_RPMS: "findutils"
VAR_POETRY_INSTALL_OPT: "--with dev"
REQUIRE_RHEL: "no"
image: vmaas/test:latest
environment:
CI: "${CI:-false}"
GITHUB_ACTIONS: "${GITHUB_ACTIONS:-false}"
GITHUB_REF: "${GITHUB_REF:-}"
GITHUB_HEAD_REF: "${GITHUB_HEAD_REF:-}"
GITHUB_SHA: "${GITHUB_SHA:-}"
GITHUB_REPOSITORY: "${GITHUB_REPOSITORY:-}"
GITHUB_RUN_ID: "${GITHUB_RUN_ID:-}"
env_file:
- ./conf/common.env
- ./conf/test.env
depends_on:
- vmaas_database
volumes:
- ./:/vmaas
user: root
security_opt:
- label=disable
command: >
bash -c 'cd /vmaas && ./scripts/check_deps_versions.sh \
&& python3.11 ./scripts/validate_dashboards.py ./monitoring/grafana/dashboards/ \
&& python3.11 -m vmaas.common.wait_for_services python3.11 -m vmaas.reposcan.database.upgrade \
&& ./run_tests.sh vmaas/common \
&& ./run_tests.sh vmaas/reposcan \
&& ./run_tests.sh vmaas/webapp'