Felix Fontein
1427a7ccdd
Release 3.2.1.
3.2.1
2022-11-06 22:02:10 +01:00
Felix Fontein
c7f5c74f15
Prepare 3.2.1 release.
2022-11-06 21:16:18 +01:00
Felix Fontein
2261dff49f
Document attributes ( #497 )
...
* Add 'docker' action group attribute.
* Compatibility with older ansible-core releases.
* Fix typo.
* Docment standard attributes.
* Improve docs.
* Add shortcuts for common combinations.
2022-11-06 21:15:09 +01:00
Felix Fontein
7ea99edf07
Next expected release is 3.3.0.
2022-11-01 21:41:17 +01:00
Felix Fontein
79b05f5e1d
Release 3.2.0.
3.2.0
2022-11-01 21:18:46 +01:00
Felix Fontein
5b31f17016
Add image_name_mismatch option. ( #488 )
2022-11-01 19:48:58 +00:00
Felix Fontein
4e1bb64b0a
Prepare 3.2.0 release.
2022-11-01 20:48:21 +01:00
Felix Fontein
51d5744cb0
docker_container: deprecate ignore_image and purge_networks ( #487 )
...
* Deprecate ignore_image and purge_networks.
* Fix YAML.
* Simple replacement doesn't work in this case.
2022-11-01 19:57:56 +01:00
Felix Fontein
1ac3a99e7c
Fix non-matching defaults. ( #494 )
2022-11-01 18:08:45 +01:00
James A. Robinson
df864221d6
added documentation to indicate docker_swarm_service does not currently support operating on stack based services. ( #491 )
2022-10-26 12:49:59 +02:00
Felix Fontein
af854ed63b
Use dependabot to update GHAs.
2022-10-17 22:57:32 +02:00
Felix Fontein
a380607717
Bump one more.
2022-10-17 22:43:07 +02:00
Felix Fontein
25d44fe061
Bump checkout version. ( #486 )
2022-10-17 22:37:13 +02:00
Felix Fontein
ac606cd2bf
Change CI group identifiers. ( #484 )
2022-10-10 22:39:27 +02:00
Felix Fontein
1e93feed2b
Fail on docs build errors.
2022-09-22 06:40:57 +02:00
Felix Fontein
e412c0d081
Add stable-2.14 to CI. ( #478 )
2022-09-21 08:16:55 +02:00
Felix Fontein
a309a1b2f0
Next expected release is 3.2.0.
2022-09-08 07:18:27 +02:00
Felix Fontein
a72d7795c4
Release 3.1.0.
3.1.0
2022-09-08 06:51:36 +02:00
Felix Fontein
3b41e7d6a8
Improve docker_compose example ( #470 )
...
* Improve compose docs.
* Also adjust inline v1 example.
2022-09-08 06:33:06 +02:00
Felix Fontein
9458bc6e62
Clarify that BuildKit / buildx cannot be used with docker_image. ( #468 )
2022-09-07 21:52:38 +02:00
Felix Fontein
d159479615
Prepare 3.1.0 release.
2022-09-03 12:08:05 +02:00
Max
c9ea1d3f92
docker_swarm: add data_path_port option for swarm init ( #466 )
...
* Add data_path_port option for swarm init and swarm join
* Add changelog fragment
* Update changelogs/fragments/466-add-data-path-port.yml
Co-authored-by: Felix Fontein <felix@fontein.de >
* Update plugins/modules/docker_swarm.py
Co-authored-by: Felix Fontein <felix@fontein.de >
* add change for docker sdk, remove reference to swarm join
* remove duplicate entry
Co-authored-by: Felix Fontein <felix@fontein.de >
2022-09-03 11:20:02 +02:00
Felix Fontein
1e24120014
Fix two more booleans. ( #464 )
2022-08-23 21:26:50 +02:00
Felix Fontein
8254e72da0
Fix workflow's permissions.
2022-08-21 11:35:25 +02:00
Felix Fontein
68ea9c5f41
Make reuse conformant ( #462 )
...
* Add .license files.
* Add reuse test.
* Update README.
* Add changelog fragment.
* Normalize licenses extra sanity test.
* Declare REUSE conformance.
* Update README.
2022-08-21 08:29:15 +02:00
Felix Fontein
8eabc7fe00
Release 3.0.2.
3.0.2
2022-08-16 22:47:57 +02:00
Felix Fontein
d8297df7d0
Fix docker_image's build.args ( #456 )
...
* Add tests for build.args.
* Fix bug: store build args in correct dict
* Add changelog fragment.
* Update copyright notice.
2022-08-16 22:37:51 +02:00
Felix Fontein
ad05773e34
Fix docs fragment. ( #460 )
2022-08-16 21:54:56 +02:00
Felix Fontein
9b8c10b8cf
Move Fedora 35 from devel to stable-2.13 CI runs. ( #458 )
2022-08-16 21:41:36 +02:00
Felix Fontein
03ecea94c0
Prepare 3.0.2 release.
2022-08-16 13:48:02 +02:00
Evgeni Golov
91caf49988
correctly document incompatibility with Python 3.12+ ( #454 )
...
there was no, and there will not be, a Python 2.12 ;-)
2022-08-15 14:00:17 +02:00
Felix Fontein
6c9152567b
Next expected release is 3.1.0.
2022-08-15 08:58:41 +02:00
Felix Fontein
fbac2ecc3d
Release 3.0.1.
3.0.1
2022-08-15 08:02:34 +02:00
Felix Fontein
b720c8f486
Forgot to update copied version of deprecation notice. ( #453 )
2022-08-15 08:01:42 +02:00
Felix Fontein
f7cf12555c
docker_container: fix env_file option ( #452 )
...
* Add better tests for env and env_file.
* Make sure that non-container options are also passed to preprocessing code.
* Add changelog fragment.
* Add env_file override test.
2022-08-15 07:45:59 +02:00
Felix Fontein
f9741b7457
Prepare 3.0.1 release.
2022-08-14 12:26:23 +02:00
Felix Fontein
9acc75be85
Next expected release is 3.1.0.
2022-08-12 22:35:33 +02:00
Felix Fontein
be4f333696
Release 3.0.0.
3.0.0
2022-08-12 22:03:48 +02:00
Felix Fontein
a50257381f
Fix docker_plugin crash when handling plugin options ( #447 )
...
* Fix docker_plugin crash when handling plugin options.
* Try to add tests.
2022-08-12 19:29:45 +02:00
Felix Fontein
f513ba2c59
Fix error formatting bug. ( #448 )
2022-08-12 13:53:59 +02:00
Felix Fontein
5b76f05bef
Prepare 3.0.0 release.
2022-08-10 21:49:56 +02:00
Felix Fontein
be58ccc13f
Normalize booleans in all other plugins and modules. ( #440 )
2022-08-10 21:25:10 +02:00
Felix Fontein
1bf8da2390
Normalize booleans in docker_container docs. ( #439 )
2022-08-09 18:32:05 +02:00
Felix Fontein
74134eda33
Fix docker_container tests ( #441 )
...
* Add diff output to figure out a bit more why the test fails.
* Make sure that both images have been pulled in advance.
* Dump the correct image.
* Allow tty test to fail in certain circumstances.
2022-08-08 23:23:23 +02:00
Felix Fontein
1e4633a606
For Python > 2, always use shutil.which instead of custom Windows helper code. ( #438 )
...
This is related to
https://github.com/docker/docker-py/commit/42789818bed5d86b487a030e2e60b02bf0cfa284
in the sense that for Python > 2, we also exclusively use shutil.which now,
but we do not remove the helper function since we need it for Python 2 on Windows.
Co-authored-by: Daniel Möller <n1ngu@riseup.net >
Co-authored-by: Daniel Möller <n1ngu@riseup.net >
2022-08-08 20:58:12 +02:00
Felix Fontein
bc6757d3b8
Fix docs. ( #436 )
2022-08-04 14:23:52 +02:00
Felix Fontein
b2bb064e47
Release 3.0.0-rc2.
3.0.0-rc2
2022-07-31 17:50:47 +02:00
Felix Fontein
da9b076904
Prepare 3.0.0-rc2.
2022-07-31 17:11:48 +02:00
Felix Fontein
ae708a7333
Vendored Docker SDK for Python updates ( #434 )
...
* utils: fix IPv6 address w/ port parsing
This was using a deprecated function (`urllib.splitnport`),
ostensibly to work around issues with brackets on IPv6 addresses.
Ironically, its usage was broken, and would result in mangled IPv6
addresses if they had a port specified in some instances.
Usage of the deprecated function has been eliminated and extra test
cases added where missing. All existing cases pass as-is. (The only
other change to the test was to improve assertion messages.)
Cherry-picked from
https://github.com/docker/docker-py/commit/f16c4e1147c81afd822fe72191f0f720cb0ba637
Co-authored-by: Milas Bowman <milas.bowman@docker.com >
* client: fix exception semantics in _raise_for_status
We want "The above exception was the direct cause of the following exception:" instead of "During handling of the above exception, another exception occurred:"
Cherry-picked from
https://github.com/docker/docker-py/commit/bb11197ee3407798a53c50e43aa994fe8cd9c8e7
Co-authored-by: Maor Kleinberger <kmaork@gmail.com >
* tls: use auto-negotiated highest version
Specific TLS versions are deprecated in latest Python, which
causes test failures due to treating deprecation errors as
warnings.
Luckily, the fix here is straightforward: we can eliminate some
custom version selection logic by using `PROTOCOL_TLS_CLIENT`,
which is the recommended method and will select the highest TLS
version supported by both client and server.
Cherry-picked from
https://github.com/docker/docker-py/commit/56dd6de7dfad9bedc7c8af99308707ecc3fad78e
Co-authored-by: Milas Bowman <milas.bowman@docker.com >
* transport: fix ProxyCommand for SSH conn
Cherry-picked from
https://github.com/docker/docker-py/commit/4e19cc48dfd88d0a9a8bdbbe4df4357322619d02
Co-authored-by: Guy Lichtman <glicht@users.noreply.github.com >
* ssh: do not create unnecessary subshell on exec
Cherry-picked from
https://github.com/docker/docker-py/commit/bb40ba051fc67605d5c9e7fd1eb5f9aa3e0fb501
Co-authored-by: liubo <liubo@uniontech.com >
* ssh: reject unknown host keys when using Python SSH impl
In the Secure Shell (SSH) protocol, host keys are used to verify the identity of remote hosts. Accepting unknown host keys may leave the connection open to man-in-the-middle attacks.
Do not accept unknown host keys. In particular, do not set the default missing host key policy for the Paramiko library to either AutoAddPolicy or WarningPolicy. Both of these policies continue even when the host key is unknown. The default setting of RejectPolicy is secure because it throws an exception when it encounters an unknown host key.
Reference: https://cwe.mitre.org/data/definitions/295.html
NOTE: This only affects SSH connections using the native Python SSH implementation (Paramiko), when `use_ssh_client=False` (default). If using the system SSH client (`use_ssh_client=True`), the host configuration
(e.g. `~/.ssh/config`) will apply.
Cherry-picked from
https://github.com/docker/docker-py/commit/d9298647d91c52e1ee9ac448e43a7fea1c69bdbe
Co-authored-by: Audun Nes <audun.nes@gmail.com >
* lint: fix deprecation warnings from threading package
Set `daemon` attribute instead of using `setDaemon` method that
was deprecated in Python 3.10.
Cherry-picked from
https://github.com/docker/docker-py/commit/adf5a97b1203623ae47bf7aa1367b6bb7c261980
Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com >
* api: preserve cause when re-raising error
Use `from e` to ensure that the error context is propagated
correctly.
Cherry-picked from
https://github.com/docker/docker-py/commit/05e143429e892fb838bbff058391456ba3d0a19c
Co-authored-by: Milas Bowman <milas.bowman@docker.com >
* build: trim trailing whitespace from dockerignore entries
Cherry-picked from
https://github.com/docker/docker-py/commit/3ee3a2486fe75ed858f8a3defe0fc79b2743d5df
Co-authored-by: Clément Loiselet <clement.loiselet@capgemini.com >
* Improve formulation, also mention the security change as a breaking change.
Co-authored-by: Milas Bowman <milas.bowman@docker.com >
Co-authored-by: Maor Kleinberger <kmaork@gmail.com >
Co-authored-by: Guy Lichtman <glicht@users.noreply.github.com >
Co-authored-by: liubo <liubo@uniontech.com >
Co-authored-by: Audun Nes <audun.nes@gmail.com >
Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com >
Co-authored-by: Clément Loiselet <clement.loiselet@capgemini.com >
2022-07-31 17:09:18 +02:00
Maxwell G
a33e51e04a
Prefer unitest.mock by universally using compat.mock ( #433 )
...
* Prefer unitest.mock by using compat.mock
`mock` is a backport of the `unittest.mock` module from the stdlib, and
there's no reason to use it on newer Python versions. `mock` is deprecated
in Fedora, so I figured I'd propose this here before downstream patching
our ansible-collection-community-docker package.
* Remove compat.mock code for older Python 3 versions
This removes compatibility for older versions of Python 3 that are no
longer supported.
2022-07-31 16:39:31 +02:00