Bas Zoetekouw
dd34a90068
Add testcase for failing network config
...
Signed-off-by: Bas Zoetekouw <bas.zoetekouw@surf.nl>
2024-03-28 16:09:43 +02:00
wiehe
1e9cf1dff0
Pass file secrets to "podman build" via parameter "--secret"
...
to make them available for "RUN --mount=type=secret" statements inside the
Dockerfile.
Keep using --volume to pass file secrets to "podman run".
Signed-off-by: wiehe <28457227+wiehe@users.noreply.github.com>
2024-03-12 17:23:40 +01: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
Povilas Kanapickas
4e43606df3
Shorten too long lines
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 23:46:24 +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
1a24cde608
tests: Properly tear down containers in extends_w_file_subdir test
...
podman rmi does not guarantee that the container itself is shut down.
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 15:52:40 +02:00
Povilas Kanapickas
27c8cebbdc
tests: Add verbose debug option via env variable
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 15:34:00 +02:00
Povilas Kanapickas
0614687840
tests: Print decoded subprocess output in case of failure
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 15:11:25 +02:00
Povilas Kanapickas
6af7a2d691
tests: Optimize speed by using dumb-init to handle SIGTERM signal
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 14:45:53 +02:00
Povilas Kanapickas
f4dc5f3b93
tests: Print output in case subprocess returns unexpected code
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-03-08 13:14:02 +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
Falmarri
c6a1c4c432
Add tests to make sure all async paths are covered
...
Not at 100% yet. But upped code coverage significantly and covered major
async calls.
Signed-off-by: Falmarri <463948+Falmarri@users.noreply.github.com>
2024-02-04 10:11:57 +03:00
Falmarri
3c9628b462
Fix a couple issues and update docs
...
Signed-off-by: Falmarri <463948+Falmarri@users.noreply.github.com>
2024-02-04 10:11:57 +03:00
Falmarri
38b13a34ea
Use asyncio for subprocess calls
...
Removes the threads from compose_up and manages it using async. Also
uses async processing to format the log messages instead of piping
through sed. This should work on windows without having sed installed
Adds --parallel to support pull and build in parallel, same as docker
compose
Signed-off-by: Falmarri <463948+Falmarri@users.noreply.github.com>
2024-02-04 10:11:57 +03:00
Natanael Arndt
280f1770bf
Add a test to extend using an empty service (placeholder)
...
Signed-off-by: Natanael Arndt <arndtn@gmail.com>
2023-07-26 17:32:14 +03:00
Mahmoud Abduljawad
bf07e91163
Implement include
from compose-spec
...
Signed-off-by: Mahmoud Abduljawad <mahmoud@masaar.com>
2023-07-18 13:05:46 +03:00
BugFest
5d279c4948
Build-fail test example
...
Signed-off-by: BugFest <bugfest.dev@pm.me>
2023-04-12 22:25:33 +03:00
BugFest
5a3bdbf89b
Exit code managed at PodmanCompose.run()
...
Signed-off-by: BugFest <bugfest.dev@pm.me>
2023-04-12 22:25:33 +03:00
BugFest
3f4618866b
Update project-1.env
2023-04-10 14:14:14 +03:00
BugFest
59a59c1a3a
Fixes #636 : env-file shall be resolved relative to the CWD
...
Signed-off-by: BugFest <bugfest.dev@pm.me>
2023-04-10 14:14:14 +03:00
BugFest
6f902faed0
Fix linting issues
...
Signed-off-by: BugFest <bugfest.dev@pm.me>
2023-04-10 14:12:32 +03:00
Bhavin Gandhi
0b853f29f4
Ignore access mode when merging volumes short syntax
...
The target path inside the container is treated as a key. Ref:
https://github.com/compose-spec/compose-spec/blob/master/spec.md#merging-service-definitions
Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
2023-04-10 12:25:05 +03:00
waechtjn
847f01a6c6
Add a docker-compose test file for uidmaps/gidmaps
...
Add a simple docker-compose.yml test to use the x-podman extension with
uidmaps and gitmaps
2023-04-10 12:22:25 +03:00
Dixon Whitmire
13856d2e9c
updating black formatting
...
Signed-off-by: Dixon Whitmire <dixonwh@gmail.com>
2023-04-10 12:12:18 +03:00
Dixon Whitmire
8d8df0bc28
Adding basic support for --profile argument
...
Signed-off-by: Dixon Whitmire <dixonwh@gmail.com>
2023-04-10 12:12:18 +03: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
Muayyad alsadi
9046f7eee0
#634 : follow up
2023-04-09 12:00:45 +03:00
Dixon Whitmire
08ffcf6126
updating test_podman_compose_extends_w_file_subdir to use the correct image name
...
Signed-off-by: Dixon Whitmire <dixonwh@gmail.com>
2022-10-28 00:13:56 +02:00
Muayyad alsadi
7b99b38f0e
nethost test
2022-03-19 00:17:22 +03:00
Muayyad alsadi
3b7bf81051
remove unused test
2022-03-08 10:47:16 +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
af10345483
FIXES #440 : absolute secret
2022-02-28 01:19:39 +03:00
Muayyad alsadi
1e895c0873
calc proper hash
2022-02-25 18:56:36 +03:00
Muayyad alsadi
132a22b524
#130 : handle nested extend and normalize build context
2022-02-25 18:32:19 +03:00
kjunker
0bde01de07
remove unused imports
...
Signed-off-by: kjunker <junker.kurt@googlemail.com>
2022-02-22 13:26:44 +02:00
kjunker
91a579b81e
Adding Test that the changes can build Image from build context of extended compose-file
...
Signed-off-by: kjunker <junker.kurt@googlemail.com>
2022-02-22 13:26:44 +02:00
Muayyad alsadi
3e6e268034
test for logs
2022-02-12 13:54:30 +02:00
Muayyad alsadi
4557279930
#88 : multiple aliases
2021-12-25 21:06:29 +02:00
Muayyad alsadi
2c60516f77
fix hostname in test
2021-12-23 00:34:01 +02:00
Mark Stosberg
6b5f62d693
Fixes #199 : seccomp:unconfined
2021-12-11 01:50:40 +02:00
aanno
17f9ca61bd
test fixes for SELinux (Fedora)
2021-11-24 18:06:18 +02:00
Muayyad alsadi
80a47a13d5
add network-alias
2021-11-21 12:35:13 +02:00
Muayyad alsadi
872404c3a7
initial work on CNI podman network create
2021-11-21 01:23:29 +02:00
Muayyad alsadi
d8e11d59ef
FIXES #312 : run starts dependencies
2021-11-14 01:37:22 +02:00
Muayyad alsadi
72c3572123
#289 : exit code and test for that
2021-11-14 00:59:41 +02:00
Muayyad alsadi
d1a77defcd
external name
2021-10-14 02:11:45 +03:00
Muayyad alsadi
ab135030c8
add support for long port publishing format
2021-10-10 00:43:01 +03:00
Sam
62aa337f17
feat(secrets): ✨ Add support for secrets
...
Adds support for -
- (1) Declared secrets with the file location.
- (2) Declared secrets with file location, mounted as a different named secret.
- (3) Declared secrets with file location, mounted at arbitrary location.
- (4) External secrets (type=mount), mounted as original secret name.
- (5) External secrets (type=mount), mounted as original secret name, with specified uid, gid and mode.
2021-07-24 02:29:32 +03:00