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
baccce4f3f
Fix comments related to logging
...
Signed-off-by: Yusuke Matsubara <whym@whym.org >
2025-02-25 01:38:41 +02:00
07af8488db
Merge pull request #1147 from joern19/main
...
Allow configuration of interface_name
2025-02-24 01:26:38 +02:00
cbc5a8c8b3
Add newsfragment for interface_name option
...
Signed-off-by: Jörn Hirschfeld <joern@hirschfeld.tech >
2025-02-23 17:08:06 +01:00
aeaceed7ba
integration test for x-podman.interface_name option
...
Signed-off-by: Jörn Hirschfeld <joern@hirschfeld.tech >
2025-02-23 17:08:00 +01:00
b1eb558b41
Document existence of x-podman.interface_name
...
Signed-off-by: Jörn Hirschfeld <joern@hirschfeld.tech >
2025-02-23 17:04:10 +01:00
1cdc9e6552
interface_name can be specified in net_config_
...
Signed-off-by: Jörn Hirschfeld <joern@hirschfeld.tech >
2025-02-23 17:04:10 +01:00
2f8ed2137c
Merge pull request #1144 from mokibit/automate-secrets-tests
...
test/integration: Automate manual `secrets` test
2025-02-20 09:57:11 +02:00
838957b902
test/integration: Automate manual 'secrets' test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt >
2025-02-19 21:42:52 +02:00
15380a809d
Merge pull request #1135 from rpluem-vf/keep_fds_open
...
Do not close file descriptors when executing podman
2025-02-18 13:26:15 +02:00
d4e5859370
Do not close file descriptors when executing podman
...
Do not close file descriptors when executing podman. This allows
externally created file descriptors to be passed to containers.
These file descriptors might have been created through systemd
socket activation. See also
https://github.com/containers/podman/blob/main/docs/tutorials/socket_activation.md#socket-activation-of-containers
Signed-off-by: Ruediger Pluem <ruediger.pluem@vodafone.com >
2025-02-12 11:35:51 +01:00
593d7c825e
Merge pull request #1138 from mokibit/automate-seccomp-test
...
tests/integration: Automate manual `seccomp` test
2025-02-07 22:46:39 +02:00