mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
10461b7091
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
version: '2.1'
|
|
services:
|
|
master:
|
|
image: ${IPA_DOCKER_IMAGE}
|
|
build: .
|
|
cap_add:
|
|
- ALL
|
|
security_opt:
|
|
- apparmor:unconfined
|
|
- seccomp:./seccomp.json
|
|
mem_limit: "${IPA_TESTS_SERVER_MEM_LIMIT}"
|
|
memswap_limit: "${IPA_TESTS_SERVER_MEMSWAP_LIMIT}"
|
|
volumes:
|
|
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
|
|
- ./ipa-test-config.yaml:/root/.ipa/ipa-test-config.yaml:ro
|
|
- ${BUILD_REPOSITORY_LOCALPATH}:${IPA_TESTS_REPO_PATH}
|
|
|
|
networks:
|
|
- ${IPA_NETWORK}
|
|
|
|
replica:
|
|
image: ${IPA_DOCKER_IMAGE}
|
|
build: .
|
|
cap_add:
|
|
- ALL
|
|
security_opt:
|
|
- apparmor:unconfined
|
|
- seccomp:./seccomp.json
|
|
mem_limit: "${IPA_TESTS_REPLICA_MEM_LIMIT}"
|
|
memswap_limit: "${IPA_TESTS_REPLICA_MEMSWAP_LIMIT}"
|
|
volumes:
|
|
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
|
|
- ${BUILD_REPOSITORY_LOCALPATH}:${IPA_TESTS_REPO_PATH}:ro
|
|
networks:
|
|
- ${IPA_NETWORK}
|
|
|
|
client:
|
|
image: ${IPA_DOCKER_IMAGE}
|
|
build: .
|
|
cap_add:
|
|
- ALL
|
|
security_opt:
|
|
- apparmor:unconfined
|
|
- seccomp:./seccomp.json
|
|
mem_limit: "${IPA_TESTS_CLIENT_MEM_LIMIT}"
|
|
memswap_limit: "${IPA_TESTS_CLIENT_MEMSWAP_LIMIT}"
|
|
volumes:
|
|
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
|
|
- ${BUILD_REPOSITORY_LOCALPATH}:${IPA_TESTS_REPO_PATH}:ro
|
|
# nfs server
|
|
- ./exports:/exports
|
|
- /lib/modules:/lib/modules:ro
|
|
networks:
|
|
- ${IPA_NETWORK}
|
|
|
|
networks:
|
|
ipanet:
|
|
driver: bridge
|
|
enable_ipv6: true
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: ${IPA_IPV6_SUBNET}
|
|
internal: ${IPA_NETWORK_INTERNAL}
|