-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
85 lines (74 loc) · 2.04 KB
/
docker-compose.yaml
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
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023 Univention GmbH
---
services:
data-loader:
profiles:
- "test"
image: "gitregistry.knut.univention.de/univention/customers/dataport/upx/stack-data/data-loader:${IMAGE_TAG:-latest}"
build:
context: "./docker/data-loader"
platform: "linux/amd64"
working_dir: "/src"
volumes:
- "./:/src/"
environment:
UDM_API_URL: "http://udm-rest-api:9979/udm/"
UDM_API_USER: "cn=admin"
UDM_API_PASSWORD_FILE: "/run/secrets/ldap_secret"
secrets:
- "ldap_secret"
data-loader-test:
profiles:
- "test"
build:
context: "./docker/data-loader"
target: "test"
platform: "linux/amd64"
volumes:
- "./:/src/"
joinscript-tools:
profiles:
- "test"
image: "gitregistry.knut.univention.de/univention/customers/dataport/upx/stack-data/joinscript-tools:${IMAGE_TAG:-latest}"
build:
context: "./docker/joinscript-tools"
platform: "linux/amd64"
working_dir: "/src"
volumes:
- "./:/src/"
# Environment to build the documentation
docs:
image: "docker-registry.knut.univention.de/sphinx:latest"
working_dir: "/src/docs"
volumes:
- ".:/src"
profiles:
- "docs"
# Environment of the pre-commit linter.
pre-commit:
profiles:
- "test"
image: "gitregistry.knut.univention.de/univention/customers/dataport/upx/container-pre-commit/upx-pre-commit:latest"
volumes:
- type: "bind"
source: "."
target: "/code"
- type: "volume"
# pre-commit installs dependencies, having them cached speeds things up
# a lot.
source: "pre-commit-cache"
target: "/cache"
test:
image: gitregistry.knut.univention.de/univention/customers/dataport/upx/common-helm/testrunner:0.7.0
command: pytest --values helm/stack-data-ums/linter_values.yaml tests
profiles:
- test
volumes:
- ".:/app"
secrets:
ldap_secret:
file: "secret/ldap.secret"
volumes:
pre-commit-cache:
...