Files
freeipa/ipatests/azure/Dockerfiles/docker-compose.yml
T
Stanislav Levin 5501fda561 azure: Run Base and XMLRPC tests is isolated network
The tests in these envs make DNS requests to wild(internet) NSs,
though usually tests assume the opposite making requests to
`test.` zone. This makes CI unstable and dependent on wild
resolvers and logically wrong.

In future there can be tests which may want to check BIND as
resolver(cache) for external networks. In this case such tests
should be placed on not isolated mode.

By default, a test env is not isolated from internet(as it was
before), but it may be a good idea to change this default in
future.

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-05-25 16:45:37 +03:00

60 lines
1.2 KiB
YAML

version: '2.1'
services:
master:
image: ${IPA_DOCKER_IMAGE}
build: .
cap_add:
- ALL
security_opt:
- apparmor:unconfined
- seccomp:./seccomp.json
mem_limit: "1900m"
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: "1900m"
volumes:
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
networks:
- ${IPA_NETWORK}
client:
image: ${IPA_DOCKER_IMAGE}
build: .
cap_add:
- ALL
security_opt:
- apparmor:unconfined
- seccomp:./seccomp.json
mem_limit: "536870912"
volumes:
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
# 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}