Bas Zoetekouw
953534a71a
Support and document all podman-specific network_modes
...
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-28 16:09:43 +02:00
Bas Zoetekouw
6feff244db
slirp4netns can be used without options
...
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-28 16:09:43 +02:00
Bas Zoetekouw
9fd4cf43c1
Add unit tests for network_mode
...
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-28 16:09:43 +02:00
Bas Zoetekouw
9baea704d7
use preferred format of podman command line options
...
Specifically:
- use "--network=foo" instead of "--network foo"
- specify "--network-alias" multiple times instead of concatenating values
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-28 16:09:43 +02:00
Bas Zoetekouw
45ca1f994f
Support podman-specific per-network mac_address specifiation
...
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-28 16:09:43 +02:00
Bas Zoetekouw
91fbea3d89
Add unit tests for get_net_args()
...
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-28 16:09:43 +02:00
Bas Zoetekouw
2743d690d2
Fix support for multiple networks with explicitly specified ipv4/ipv6 addresses
...
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-28 16:09:43 +02:00
Ari Pollak
829cde0de9
Rename test classes to match filenames
...
Signed-off-by: Ari Pollak <ajp@aripollak.com>
2024-03-09 16:34:06 -05:00
Povilas Kanapickas
f18c8092cc
Merge pull request #887 from baszoetekouw/fix-oldpython
...
Fix support for older python versions
2024-03-09 23:29:32 +02:00
Povilas Kanapickas
43059dc16f
Merge pull request #783 from ChuJiani/devel
...
Fix #782 : add support for `http-proxy` option of podman
2024-03-09 23:27:22 +02:00
Bas Zoetekouw
5e55df890c
fix python < 3.9 compatibility
...
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-09 22:26:36 +01:00
Ari Pollak
f2f5483a74
Extract compose_run args parsing and add unit tests
...
Signed-off-by: Ari Pollak <ajp@aripollak.com>
2024-03-09 16:18:13 -05:00
Ari Pollak
c4fa8f7a16
Split exec args parsing into new function and add unit tests for it
...
Signed-off-by: Ari Pollak <ajp@aripollak.com>
2024-03-09 16:02:47 -05:00
ChuJiani
c98cbaaaf0
Fix #782 : add support for http_proxy
...
Signed-off-by: ChuJiani <archet@chujiani.top>
2024-03-09 17:10:09 +00:00
Evgeniy Timokhov
91d316ff1f
Added handling pid
option
...
Fixes #554
Signed-off-by: Evgeniy Timokhov <timocov@gmail.com>
2024-03-09 16:10:37 +00:00
Maximilian R
969edb88d0
Add support for enable_ipv6
...
Signed-off-by: Maximilian R <maxi.rostock@outlook.de>
2024-03-09 13:01:41 +02:00
Maximilian R
bba1f33d51
Factor out arg creation for "network create". Add unit tests.
...
Signed-off-by: Maximilian R <public@complexvector.space>
2024-03-09 13:00:09 +02:00
lemmi
a9c335bf82
Handle sysctls maps
...
- Add support to handle sysctls maps.
- Directly raise an error if sysctls is neither an array nor map instead
of letting podman fail with an unhelpful message.
Support for sysctls arrays was added in #261 .
Fixes #754 : sysctls only works with arrays, not maps
Signed-off-by: lemmi <lemmi@nerd2nerd.org>
2024-03-09 12:44:55 +02:00
lemmi
e67c52f2c4
test_container_to_args: handle async tests
...
Signed-off-by: lemmi <lemmi@nerd2nerd.org>
2024-03-09 12:44:55 +02:00
Povilas Kanapickas
bb2338e447
Fix unsorted imports
...
This is a logical merge conflict that has been caused by several PRs
landing in parallel.
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 23:54:48 +02:00
Povilas Kanapickas
a8db898ac6
Merge pull request #883 from p12tic/lint-fixes
...
Enable ruff check and fix lint errors
2024-03-08 23:51:25 +02:00
Povilas Kanapickas
15ae2140d4
Add support for runtime service configuration key
...
https://docs.docker.com/compose/compose-file/05-services/#runtime
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 23:48:55 +02:00
Povilas Kanapickas
b0da6f82d3
Fix import formatting
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 23:46:19 +02:00
Povilas Kanapickas
b34f699adb
Add SPDX license identifiers to each source file
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 12:19:51 +02:00
Povilas Kanapickas
23fe9e7e1d
Migrate tests to unittest
...
unittest is much more straightforward without any magic. In a small
project like podman-compose being easy to understand is more important
than features.
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 11:33:17 +02:00
Povilas Kanapickas
a967cab02b
Format codebase with ruff
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-07 18:28:06 +02:00
Evedel
06587c1dca
rm redundant tests
...
Signed-off-by: Evedel <svbiriukov@gmail.com>
2023-08-02 14:19:15 +03:00
Evedel
bc9168b039
add no-normalize flag
...
Signed-off-by: Evedel <svbiriukov@gmail.com>
2023-08-02 14:19:15 +03:00
Sergei Biriukov
57c527c2c9
add edits from review
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-08-02 14:19:15 +03:00
Sergei Biriukov
d1f5ac9edc
convert build context path to absolute during final normalisation
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-08-02 14:19:15 +03:00
Sergei Biriukov
cfd24cc2e8
Merge branch 'devel' into allow-config-to-merge-strings-and-dicts-in-build
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-05-06 18:14:44 +10:00
Sergei Biriukov
79bfad103c
move logic from rec_merge to normalize_service
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-05-06 10:42:44 +03:00
Sergei Biriukov
d1509468c3
allow empty list to be a command/entrypoint
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-05-06 10:42:44 +03:00
Sergei Biriukov
9011e9faa1
add tests, dry up code, use shlex.split instead of str.split
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-05-06 10:42:44 +03:00
Sergei Biriukov
85d5d5dcc9
move logic from rec_merge to normalize_service
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-05-06 15:17:54 +10:00
Sergei Biriukov
8c66b1cda7
add test case for when build is a complex dictionary
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-04-30 15:37:52 +10:00
Sergei Biriukov
a0005db474
add code implementing build value merge
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-04-29 13:52:19 +10:00
Sergei Biriukov
221cf14501
add tests for build value merge
...
Signed-off-by: Sergei Biriukov <svbiriukov@gmail.com>
2023-04-29 13:17:43 +10:00
BugFest
016c97fd1e
Fixes #663 - Fixes linting/pylint errors
...
Signed-off-by: BugFest <bugfest.dev@pm.me>
2023-04-10 11:53:47 +03:00
Piotr Husiatyński
762318093c
Force black formatting
...
Black removes the burden of manual code formatting and is by now
considered the standard Python formatting tool.
https://black.readthedocs.io/en/stable/
Format all Python code with black.
GitHub linting action is updated to ensure all files are formatted with
Black.
Signed-off-by: Piotr Husiatyński <phusiatynski@gmail.com>
2022-03-01 17:16:04 +03:00
Muayyad alsadi
4f025679cf
add unit tests
2022-02-26 03:10:35 +03:00