freeipa/ipatests/azure/Dockerfiles/docker-compose.yml
Stanislav Levin 10461b7091 azure: Make it possible to adjust Docker resources per test env
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-05-25 10:45:49 +03:00

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}