da46ee3910
Fix port command for dynamic host ports
...
Use `podman inspect` to get the actual host ports rather echoing the
defined ports from the compose yml.
Fixes #778 and #1039
Signed-off-by: Frank Stettner <frank-stettner@gmx.net >
2025-04-08 13:57:19 +02:00
d80c31f578
tests/integration: Add tests for up and down command
...
Refs #387
Signed-off-by: Frank Stettner <frank-stettner@gmx.net >
2025-04-08 13:53:27 +02:00
cefa68dc75
Implement rmi argument for down command
...
Fixes #387
Signed-off-by: Frank Stettner <frank-stettner@gmx.net >
2025-04-08 13:53:27 +02:00
2e46ff0db2
Merge pull request #1159 from me-coder/container_scaling_update
...
Updates handling of scale/replicas parameter in CLI and compose file
2025-04-08 02:54:32 +03:00
fbc4c7da80
Integration tests for container scaling changes
...
Signed-off-by: Yashodhan Pise <technoy@gmail.com >
2025-04-08 01:42:03 +03:00
11879d3e94
Updates handling of scale/replicas through CLI & compose file
...
Signed-off-by: Yashodhan Pise <technoy@gmail.com >
2025-04-08 01:37:15 +03:00
27cf8da06f
Addition of relevant newsfragments file
...
Signed-off-by: Yashodhan Pise <technoy@gmail.com >
2025-04-05 20:32:58 +05:30
10a30ba24a
Merge pull request #1173 from mokibit/automate-ulimit-test
...
tests/integration: Automate manual `ulimit` test
2025-04-04 17:12:42 +03:00
a1be62fd31
tests/integration: Automate manual ulimit test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-04-04 16:31:26 +03:00
15bf02a004
Merge pull request #1175 from mokibit/automate-volumes-merge-test
...
tests/integration: Automate manual `volumes_merge` test
2025-04-04 16:31:03 +03:00
e45b5d5063
tests/integration: Automate manual volumes_merge
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-04-04 15:22:45 +03:00
c46ecb226b
Merge pull request #1171 from mokibit/fix-git-build-url-context
...
Fix using git URL as build context
2025-03-31 00:26:56 +03:00
e04b8f3a60
tests/integration: Add integration test for buid git URL as context
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-03-30 21:56:55 +03:00
815450aba9
tests/unit: Add test for buid git URL as context
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-03-30 21:56:55 +03:00
92f0a8583a
Fix using git URL as build context
...
Podman-compose actually did not work with git URL as build context.
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-03-30 21:56:55 +03:00
5f4fc4618c
Add os.path.normpath to normalize dockerfile pathname
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-03-28 22:28:30 +02:00
4d899edeb3
Merge pull request #1166 from piotr-kubiak/megre-args
...
Allow merging of args in both list and dict syntax
2025-03-24 13:35:31 +02:00
f9489afaf5
Allow merging of args in both list and dict syntax
...
Signed-off-by: Piotr Kubiak <piotr-kubiak@users.noreply.github.com >
2025-03-24 13:31:19 +02:00
7d7533772b
Merge pull request #1165 from drachenfels-de/fix-project-name-interpolation
...
Fix `COMPOSE_PROJECT_NAME` interpolation
2025-03-20 19:26:03 +02:00
65b455f081
Fix project name evaluation order
...
The COMPOSE_PROJECT_NAME environment variable must override the
top-level name: attribute in the Compose file.
The precedence order is defined in the docker compose documentation
https://docs.docker.com/compose/how-tos/project-name/#set-a-project-name
Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de >
2025-03-20 12:07:07 +01:00
1aa750bacf
integration/tests: Test project name override with COMPOSE_PROJECT_NAME env variable
...
Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de >
2025-03-20 12:07:07 +01:00
98b9bb9f8e
Fix interpolation for COMPOSE_PROJECT_NAME
...
Fixes #1073
Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de >
2025-03-20 12:07:07 +01:00
170411de8b
test/integration: Test COMPOSE_PROJECT_NAME interpolation
...
Refs #1073
Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de >
2025-03-20 12:07:01 +01:00
0cf1378cb5
Merge pull request #1148 from mokazemi/fix/sigint-down
...
Handle SIGINT when running "up" command to shutdown gracefully
2025-03-20 00:14:11 +02:00
f5a6df6dc4
added changes to release notes
...
Signed-off-by: Mohammad Kazemi <mokazemi@disroot.org >
2025-03-19 16:02:34 +03:30
f106ea0c01
modifications to pass pylint test
...
Signed-off-by: Mohammad Kazemi <mokazemi@disroot.org >
2025-03-19 15:55:55 +03:30
b748c2666c
add try-except block to handle error in case of shutdown error
...
Signed-off-by: Mohammad Kazemi <mokazemi@disroot.org >
2025-03-19 15:55:50 +03:30
3973c476c4
catch SIGINT signal properly in 'up' function and call compose 'down' function for a graceful shutdown
...
Signed-off-by: Mohammad Kazemi <mokazemi@disroot.org >
2025-03-19 15:55:38 +03:30
8b1bd0123c
Merge pull request #1168 from underground-software/build_exit
...
Properly surface errors from build commands
2025-03-19 12:50:16 +02:00
2e7d83f7f0
Properly surface errors from build commands
...
the commit 38b13a3
("Use asyncio for subprocess calls") broke the way
exit codes are reported from the podman compose build command.
The tasks are awaited as they finish which means that if a later build
finishes sucessfully after a failing build, it overwrites status.
Previously the `parse_return_code` function would skip updating the status
if the new return code was zero, but in removing it, this logic was not
carried forward.
Fixes: 38b13a3
("Use asyncio for subprocess calls")
Signed-off-by: charliemirabile <46761267+charliemirabile@users.noreply.github.com >
2025-03-18 21:49:55 -04:00
52e2912e0b
Merge pull request #1157 from mokibit/automate-selinux-test
...
test/integration: Automate manual `selinux` test
2025-03-11 18:15:55 +02:00
8ef537e247
test/integration: Automate manual selinux
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-03-06 13:04:53 +02:00
04fcc26a79
Merge pull request #1117 from rjeffman/no_exception_if_service_is_not_in_compose
...
Don't raise exception on inexistent services in 'down' command
2025-03-05 22:17:10 +02:00
d4760712b7
Don't raise exception on inexistent services in 'down' command
...
When running 'podman-compose down <service>', if service is not part of
the compose, a KeyError exception is raised in function 'get_excluded'.
By only allowing evaluation of services that exist in the compose
provides a cleaner and gentler exit for this case.
Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com >
2025-03-05 15:49:52 -03:00
7c61f24467
Merge pull request #1158 from mokibit/automate-uidmaps-test
...
test/integration: Automate manual `uidmaps` test
2025-03-04 23:41:55 +02:00
202c3771a9
test/integration: Automate manual uidmaps
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-03-04 22:28:50 +02:00
a54f0fa573
Merge pull request #1149 from AlexandreAANP/fix/windows-asyncio-loop
...
Fix event loop handling for Windows platform in compose_up function
2025-03-01 16:43:26 +02:00
3353697402
Merge pull request #1152 from IamTheFij/config-quiet
...
Add quiet flag to podman-compose config
2025-03-01 16:42:20 +02:00
ca1b59c449
Merge pull request #1153 from IamTheFij/dco-hook
...
Add hook to check for signoff in commit messages
2025-03-01 16:39:50 +02:00
b9f27795c0
Add hook to check for signoff in commit messages
...
Since this is checked on PR, it could also be checked at commit so users can avoid making commits to
the tree without expected documentation.
Signed-off-by: Ian Fijolek <ian@iamthefij.com >
2025-02-28 13:05:54 -08:00
4cd1642be0
Add quiet flag to podman-compose config
...
This skips printing and is useful for validating config files.
Signed-off-by: Ian Fijolek <ian@iamthefij.com >
2025-02-28 12:48:08 -08:00
fd401331e5
added release note to newsfragment directory
...
Signed-off-by: Alexandre Pita <alexandreanpita@gmail.com >
2025-02-27 11:45:38 +00:00
37b27fa233
Refactor event loop handling to simplify logic for Windows platforms
...
Signed-off-by: Alexandre Pita <alexandreanpita@gmail.com >
2025-02-26 17:28:59 +00:00
976847ef9b
Merge pull request #1143 from italomaia/bug/use-ruff
...
Bug: replaced black with ruff on pre-commit
2025-02-26 18:21:31 +02:00
c6b3d497d6
Adds lint exclusions already ignored by the code
...
Added flake8 excludes to rules that are already ignored by the current
code to avoid validation issues with code that has already been
approved. Added pylint disable to line with lint offense already
accepted.
Signed-off-by: Italo Maia <italo.maia@gmail.com >
2025-02-26 17:57:34 +02:00
10ad739746
Replaces black with ruff on pre-commit-config
...
Current python files are already compatible with ruff, while very
incompatible with black standard therefore, this change just enforces
the reality of the codebase. Without it, pre-commit and the ci will
fight one-another with different formatting.
Signed-off-by: Italo Maia <italo.maia@gmail.com >
2025-02-26 17:57:20 +02:00
784d798dac
Fix event loop handling for Windows platform in compose_up function
...
Signed-off-by: Alexandre Pita <alexandreanpita@gmail.com >
2025-02-26 14:38:46 +00:00
dd01d039bf
Merge pull request #1140 from whym/rename-comment
...
Fix comment, add tests, improve coding style
2025-02-25 02:02:23 +02:00
81a0a5933e
Add more logging tests
...
Signed-off-by: Yusuke Matsubara <whym@whym.org >
2025-02-25 01:52:45 +02:00
c289a3b827
Fix logging test coding style
...
Signed-off-by: Yusuke Matsubara <whym@whym.org >
2025-02-25 01:52:39 +02:00