-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
87 lines (80 loc) · 2.25 KB
/
docker-compose.yaml
File metadata and controls
87 lines (80 loc) · 2.25 KB
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
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023-2025 Univention GmbH
---
services:
data-loader:
profiles:
- "test"
image: "gitregistry.knut.univention.de/univention/customers/dataport/upx/stack-data/data-loader:${IMAGE_TAG:-latest}"
build:
dockerfile: "./docker/data-loader/Dockerfile"
target: "final"
platform: "linux/amd64"
working_dir: "/app"
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"
UDM_API_PORT: "9979"
secrets:
- "ldap_secret"
data-loader-test:
profiles:
- "test"
working_dir: /app
build:
dockerfile: "./docker/data-loader/Dockerfile"
target: "test"
platform: "linux/amd64"
volumes:
- "./src/:/app/src/"
- "./tests/:/app/tests/"
- "./examples/:/app/examples"
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/dev/tooling/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-chart-stack-data-ums:
image: gitregistry.knut.univention.de/univention/dev/nubus-for-k8s/common-helm/testrunner:0.29.0
pull_policy: "if_not_present"
command: "pytest tests/chart"
profiles:
- test
volumes:
- "./helm/:/app/helm/"
- "./tests/chart:/app/tests/chart"
secrets:
ldap_secret:
file: "secret/ldap.secret"
volumes:
pre-commit-cache: