Felix Fontein
95bdce75e6
Add ansible-lint to CI ( #1181 )
...
* Improve Ansible code.
* Add some ansible-lint ignores.
* Add ansible-lint to CI.
2025-10-25 11:07:40 +02:00
Felix Fontein
b24bce77b6
Use FQCNs. ( #1180 )
2025-10-25 10:12:21 +02:00
Felix Fontein
24f35644e3
Adjust checks.
2025-10-16 17:45:05 +02:00
Felix Fontein
e8ec22d3b1
Python code modernization, 3/n ( #1157 )
...
* Remove __metaclass__ = type.
for i in $(grep -REl '__metaclass__ = type' plugins/ tests/); do
sed -e '/^__metaclass__ = type/d' -i $i;
done
* Remove super arguments, and stop inheriting from object.
2025-10-10 08:11:58 +02:00
Felix Fontein
741c318b1d
Python code modernization, 2/n ( #1156 )
...
* Adjust all __future__ imports:
for i in $(grep -REl "__future__.*absolute_import" plugins/ tests/); do
sed -e 's/from __future__ import .*/from __future__ import annotations/g' -i $i;
done
* Remove all UTF-8 encoding specifications for Python source files:
for i in $(grep -REl '[-][*]- coding: utf-8 -[*]-' plugins/ tests/); do
sed -e '/^# -\*- coding: utf-8 -\*-/d' -i $i;
done
* Reformat.
2025-10-09 20:46:48 +02:00
Felix Fontein
449b37e1c9
Fix docker_container_exec's detach=true. ( #1145 )
2025-10-07 18:49:20 +02:00
Felix Fontein
82b3184605
Another try to add RHEL 10 to CI. ( #1136 )
2025-10-03 21:16:18 +02:00
Felix Fontein
2b5c06da20
CI: Start using Ubuntu VMs instead of RHEL VMs ( #1128 )
...
* Start using Ubuntu VMs instead of RHEL VMs.
* Use correct Python executable.
* Fix starting podman on non-RHEL systems.
2025-09-14 23:27:52 +02:00
Felix Fontein
1ba34b9b7c
CI: Add Debian 13 Trixie ( #1113 )
...
* Add Debian 13 Trixie to CI.
* I don't think this is needed any longer.
* Debian: adjust way GPG signature is installed for Docker's software repo.
2025-08-10 20:11:54 +02:00
Felix Fontein
da76583d6b
Use distribution:3.0.0. ( #1112 )
2025-08-03 17:56:32 +02:00
tpourcelot
449448e820
docker_swarm_service: add support for replicated jobs ( #1108 )
...
* feat(docker_swarm_service): Add support for replicated jobs
* chore(docker_swarm_plugin): Fixes after review
* chore(docker_swarm_service): Add a check for minimum version
* chore(docker_swarm_service): Add changelog fragment for #1108
* fix(docker_swarm_service): Fix typo in version check
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Tristan Pourcelot <tristan.pourcelot@exatrack.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-08-03 13:12:29 +02:00
Felix Fontein
c8fc5bc175
Apparently Compose 2.37.3 + Docker 28.3.0 result in a behavior change. ( #1093 )
2025-06-25 22:00:42 +02:00
Felix Fontein
ae1d457b49
ContainerName is also missing in 2.37.1. ( #1088 )
2025-06-14 17:03:27 +02:00
Felix Fontein
e9f4553b01
docker_container idempotency: work around Docker not returning true configured command when command is [] ( #1085 )
...
* Work around Docker not returning true configured command when command is [].
* Lint.
* Add test.
* Add changelog fragment.
2025-06-08 19:05:09 +02:00
Felix Fontein
8ecbd9a5cc
docker_compose_v2: work around bug in docker compose images --format json ( #1083 )
...
* Work around ubg in docker compose images --format json.
* ContainerName is no longer in image record.
2025-06-07 23:28:51 +02:00
Felix Fontein
72d827a9e2
Enable no-trailing-whitespace test.
2025-06-04 15:18:19 +02:00
Felix Fontein
e0b9c45579
Re-enable RHEL 8 in CI ( #1075 )
...
* Re-enable RHEL 8 in CI.
* Skip podman on RHEL 8.
2025-04-28 21:42:31 +02:00
Felix Fontein
ad989c1942
docker_container_copy_into: add mode_parse option ( #1074 )
...
* Add mode_parse option.
* Make yamllint config strict.
* Lint.
2025-04-28 20:46:11 +02:00
Felix Fontein
2487d1a0bf
Fix linting errors.
2025-04-26 12:39:00 +02:00
Felix Fontein
8694f488d7
CI: fix certificates for HTTPS connection tests ( #1066 )
...
* Try to fix CA cert for HTTPS connection tests.
* Try to fix leaf certificate.
* Add more properties.
2025-04-11 14:09:01 +02:00
Felix Fontein
635716c07b
docker_compose_v2: use --yes when available instead of -y ( #1060 )
...
* Use --yes if available.
* Add smoke test.
2025-03-21 22:05:10 +01:00
Felix Fontein
fdb97428a3
Fix/improve tests ( #1052 )
...
* Improve unit test condition.
* Improve/fix tests.
2025-03-08 09:54:41 +01:00
Felix Fontein
22ab85fe2b
docker_context_info: fix some aspects ( #1043 )
...
* Extend docker_context_info tests.
* Fix a bug in the context code.
* Fix TLS handling for contexts.
* Adjust code to fix tests.
2025-02-10 23:54:36 +01:00
Felix Fontein
20042ea780
Add basic podman tests to CI ( #1040 )
...
* Setup podman and run some basic tests with it.
* Clean up Docker setup.
2025-02-10 23:19:54 +01:00
Felix Fontein
3b6068e44b
Add docker_context_info module ( #1039 )
...
* Vendor parts of the Docker SDK for Python
This is a combination of the latest git version
(db7f8b8bb6 )
with some fixes to make it compatible with Python 2.7
and adjusting some imports.
* Polishing.
* Fix bug that prevents contexts to be found when no Docker config file is present.
Ref: https://github.com/docker/docker-py/issues/3190
* Linting.
* Fix typos.
* Adjust more to behavior of Docker CLI.
* Add first iteration of docker_context_info module.
* Improvements.
* Add basic CI.
* Add caveat on contexts[].config result.
2025-02-10 21:59:05 +01:00
Felix Fontein
9cc70f5202
Fix label sanitization error handling. ( #1029 )
2025-01-22 20:45:08 +00:00
Felix Fontein
9e26c4794e
docker_compose_v2: fix tests ( #1027 )
...
* Since docker-compose 2.32.2 present_3 is no longer changed.
This has been caused by https://github.com/docker/compose/pull/12442 ,
since that PR removes the "building" event.
* Remove deprecated 'version' fields.
2025-01-14 21:17:05 +01:00
Felix Fontein
993d66971d
CI: Try to get more targets for SSH connection test ( #1026 )
...
* Try to get more targets for SSH connection test.
* Install paramiko from system repos on CentOS 7.
2025-01-11 12:54:11 +01:00
Felix Fontein
8616e7f6f2
docker_image_build: work around strange behavior of docker buildx build when --output is provided ( #1006 )
...
* Work around strange behavior of docker buildx build when --output is provided.
* Adjust tests.
* Allow to pass multiple image names; correctly quote --output values.
* Return executed command.
* Adjust tests.
2024-12-14 21:32:33 +01:00
Felix Fontein
2e7b4e4605
docker_compose_v2: add ignore_build_events option; ignore build events by default ( #1011 )
...
* Add ignore_build_events option.
* Adjust docs and tests.
* Switch default to true.
* Remove unnecessary parts from tests.
2024-12-14 19:54:40 +01:00
Maksim Vorobyev
e19812917d
Add 'ingress' option to docker_network module ( #999 )
...
* Add 'ingress' option to docker_network module
* sanity fixes
* add changelog fragment
* Update plugins/modules/docker_network.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update changelogs/fragments/999-add-ingress-option-to-docker_network-module.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/docker_network.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* move 'ingress' tests to overlay.yml
* move Sworm init and Swarm cleanup to block
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-12-04 21:39:09 +01:00
Felix Fontein
78bdccd453
Correctly set can_talk_is_docker. ( #995 )
2024-11-23 13:19:32 +01:00
Felix Fontein
a740cfa0c4
Add more tests. ( #980 )
2024-10-19 22:07:06 +02:00
Felix Fontein
f7823ea626
Prepare 4.0.0 release. ( #971 )
2024-10-18 21:01:49 +02:00
Felix Fontein
28e87f4602
Compose v2: improve parsing of dry-run building JSON events ( #976 )
...
* Catch more warnings that shouldn't be there.
* Add explicit handling of dry-run image build JSON events.
These produce some one-off ID values that don't make any sense as ID values.
2024-10-14 20:56:49 +02:00
Felix Fontein
423a9bbf61
Add Docker Compose v2 exec and run modules. ( #969 )
2024-09-27 13:00:48 +03:00
Felix Fontein
41445def33
Upload Docker image used for connection tests to GHCR. ( #944 )
2024-07-25 20:46:43 +00:00
Felix Fontein
c3aceebd7d
Docker* connection plugins: add working_dir and privileged options ( #943 )
...
* Add working_dir option.
* Add privileged option.
* Add basic tests.
* Also test privileged.
2024-07-25 20:35:32 +00:00
Felix Fontein
45b2531129
docker_compose_v2* modules: use --progress json for Compose 2.29.0+ ( #931 )
...
* Use --progress json for Compose 2.29.0+.
* Add changelog fragment.
* Fix/improve handling of warnings.
* Improve parsing of warnings and some one-off messages.
* Improve warnings.
* Handle tail messages.
* Fix bug in regular event parsing.
2024-07-25 18:33:42 +02:00
Felix Fontein
a30fd93a44
Check for unparsable messages. ( #932 )
2024-07-17 23:54:31 +02:00
Felix Fontein
4b7e74b75e
docker_container: allow to wait for a container to become healthy ( #921 )
...
* Allow to wait for a container to become healthy.
* Improve wording.
Co-authored-by: Don Naro <dnaro@redhat.com>
* Improve explanation.
---------
Co-authored-by: Don Naro <dnaro@redhat.com>
2024-07-09 20:07:00 +02:00
Felix Fontein
ec37166a6c
Use registry image from ghcr.io. ( #927 )
2024-07-08 19:22:18 +00:00
Felix Fontein
8e8a091469
Get rid of hello-world image, 2/2 ( #925 )
...
* Use our image for container platform test.
* Remove docker_test_image_hello_world_platform image.
2024-07-08 09:27:27 +02:00
Felix Fontein
f9461bb441
Get rid of hello-world image, 1/2 ( #924 )
...
* Use our image for pull test.
* Add 386 versions of the images.
2024-07-08 09:04:06 +02:00
Felix Fontein
8efbd560f9
Use variable instead of image directly.
2024-07-07 23:20:42 +02:00
Felix Fontein
569880486f
Improve health check image. ( #919 )
2024-07-07 21:19:26 +02:00
Fran Jurinec
9b5dbd4543
Add support from device_cgroup_rules parameter ( #910 )
2024-07-04 09:51:32 +02:00
Felix Fontein
1713995bfc
Fix CI for CentOS 7. ( #908 )
2024-07-01 13:51:02 +02:00
Andrew Dawes
d98850e9e9
Support ansible-test integration tests for arm64 ( #906 )
...
* Support ansible-test integration for arm64
* Replace set_fact with inline templated conditional
2024-06-30 14:07:25 +02:00
Felix Fontein
2ce838ab92
Use new images for export/import tests. ( #905 )
2024-06-29 19:20:24 +02:00