community.docker/tests/integration/targets
Shane St Savage a512e7fb9e
feat: allow unlimited memory_swap in docker_container (#138)
* feat: allow unlimited memory_swap in docker_container

summary: in docker_container, allow `memory_swap: values
`unlimited` and `-1` for unlimited container swap usage.

`--memory-swap=-1` is a valid docker run value allowing
unlimited swap usage. `docker_container` should allow
setting this value via `memory_swap` values `unlimited`
and `-1` as it sometimes must explicitly be set to prevent
docker from attempting to limit swap usage to double the
`--memory` value by default. In rootless docker environments,
attempting to set `memory-swap` usage limits will result in an error
if the user doesn't have the ability to do so. Allowing explicit
unlimited swap usage via docker_container will prevent these errors.

https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details

* Update tests/integration/targets/docker_container/tasks/tests/options.yml

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-05-10 20:24:04 +02:00
..
connection Initial cleanup. 2020-10-30 07:05:51 +01:00
connection_docker docker_api connection plugin (#40) 2020-12-15 20:07:55 +00:00
connection_docker_api docker_api connection plugin (#40) 2020-12-15 20:07:55 +00:00
connection_posix Initial cleanup. 2020-10-30 07:05:51 +01:00
docker_config Initial cleanup. 2020-10-30 07:05:51 +01:00
docker_container feat: allow unlimited memory_swap in docker_container (#138) 2021-05-10 20:24:04 +02:00
docker_container_exec Add docker_container_exec module (#105) 2021-04-06 23:53:17 +02:00
docker_container_info Improve and fix tests (#36) 2020-11-23 21:48:46 +01:00
docker_host_info Improve and fix tests (#36) 2020-11-23 21:48:46 +01:00
docker_image docker_image: improve/fix handling of image IDs (#87) 2021-02-28 10:40:11 +01:00
docker_image_info [WIP] Fix CI (#50) 2020-12-15 13:57:38 +01:00
docker_image_load Replace busybox image with another one to hopefully avoid removal problems. (#133) 2021-05-02 15:38:22 +02:00
docker_login Make sure we are logged out. (#112) 2021-03-26 21:37:54 +01:00
docker_network Improve and fix tests (#36) 2020-11-23 21:48:46 +01:00
docker_network_info Initial cleanup. 2020-10-30 07:05:51 +01:00
docker_node Initial cleanup. 2020-10-30 07:05:51 +01:00
docker_node_info Initial cleanup. 2020-10-30 07:05:51 +01:00
docker_plugin New module docker_plugin (#95) 2021-03-01 13:02:53 +01:00
docker_prune Improve and fix tests (#36) 2020-11-23 21:48:46 +01:00
docker_secret Initial cleanup. 2020-10-30 07:05:51 +01:00
docker_stack [WIP] Fix CI (#50) 2020-12-15 13:57:38 +01:00
docker_stack_info [WIP] Fix CI (#50) 2020-12-15 13:57:38 +01:00
docker_stack_task_info [WIP] Fix CI (#50) 2020-12-15 13:57:38 +01:00
docker_swarm Fix AZP tests, add current_container_facts module (#48) 2020-12-13 08:06:16 +00:00
docker_swarm_info Initial cleanup. 2020-10-30 07:05:51 +01:00
docker_swarm_service docker_swarm_service: fix crash during idempotence check if published_port is not specified (#136) 2021-05-05 08:00:22 +02:00
docker_swarm_service_info Improve and fix tests (#36) 2020-11-23 21:48:46 +01:00
docker_volume Initial cleanup. 2020-10-30 07:05:51 +01:00
docker_volume_info Initial cleanup. 2020-10-30 07:05:51 +01:00
generic_ssh_connection Add use_ssh_client flag (#114) 2021-04-02 10:14:09 +02:00
inventory_docker_containers Docker inventory plugin (#61) 2020-12-30 08:44:24 +01:00
inventory_docker_machine [WIP] Fix CI (#50) 2020-12-15 13:57:38 +01:00
inventory_docker_swarm Initial cleanup. 2020-10-30 07:05:51 +01:00
setup_docker Improve tests: don't install daemon when running inside a container (#56) 2020-12-23 13:36:40 +01:00
setup_docker_registry Fix AZP tests, add current_container_facts module (#48) 2020-12-13 08:06:16 +00:00
setup_epel/tasks Initial cleanup. 2020-10-30 07:05:51 +01:00
setup_openssl Fix AZP tests, add current_container_facts module (#48) 2020-12-13 08:06:16 +00:00
setup_paramiko Add use_ssh_client flag (#114) 2021-04-02 10:14:09 +02:00
setup_pkg_mgr/tasks Initial cleanup. 2020-10-30 07:05:51 +01:00
setup_remote_constraints Initial cleanup. 2020-10-30 07:05:51 +01:00
setup_remote_tmp_dir Initial cleanup. 2020-10-30 07:05:51 +01:00