legobt
0a6e0a35e1
Fix services replicas type
...
Signed-off-by: legobt <6wbvkn0j@anonaddy.me>
2024-08-03 01:00:40 +00:00
legobt
26e6651d6c
Type hints via annotations
...
Signed-off-by: legobt <6wbvkn0j@anonaddy.me>
2024-08-03 01:00:36 +00:00
legobt
462603383c
Remove is_dict,is_str for better pyright inference
...
When support for python3.8 and python3.9 has been dropped, it will be possible to eat the cak and
have it due to PEP-647.
Signed-off-by: legobt <6wbvkn0j@anonaddy.me>
2024-08-03 01:00:30 +00:00
Povilas Kanapickas
fc90f60bf1
Merge pull request #1014 from legobeat/refactor-redundant-vars
...
refactor: clean up redundant proj_name, net vars
2024-08-02 10:22:28 +03:00
legobt
ed58ac0879
clean up redundant default_net variable
...
Signed-off-by: legobt <6wbvkn0j@anonaddy.me>
2024-08-01 23:16:13 +00:00
legobt
305f25b4d6
clean up redundant proj_name
...
- remove unutilized proj_name parameter from volume_ls
Signed-off-by: legobt <6wbvkn0j@anonaddy.me>
proj_name
2024-08-01 23:16:13 +00:00
Povilas Kanapickas
edadf73d82
Merge pull request #1017 from mokibit/automate-extends-tests
...
tests/integration: Automate manual 'extends' test
2024-08-01 21:41:30 +03:00
Monika Kairaityte
dc04108b3e
tests/integration: Automate manual 'extends' test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2024-08-01 21:29:43 +03:00
Povilas Kanapickas
348461ca77
Merge pull request #1007 from mokibit/automate-env-tests
...
tests/integration: Automate manual `env` tests
2024-07-30 14:09:55 +03:00
Monika Kairaityte
92dbd3690e
tests/integration: Automate 'env-file-tests' manual tests
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2024-07-30 12:46:13 +02:00
Povilas Kanapickas
a1e9a82693
Merge pull request #1012 from mokibit/automate-exit-from-tests
...
tests/integration: Automate manual `exit-from` tests
2024-07-30 11:16:17 +03:00
Monika Kairaityte
9e11c6bfbc
tests/integration: Automate manual 'exit-from' tests
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2024-07-30 09:40:20 +02:00
Monika Kairaityte
0d24c41afb
tests/integration: Automate 'env-tests' manual test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2024-07-29 10:39:49 +02:00
Povilas Kanapickas
585d344d0a
Merge pull request #1004 from lisongmin/substitution-with-service-environment
...
Substitution with service environment
2024-07-27 00:06:46 +03:00
Povilas Kanapickas
3aa6d4d158
Merge pull request #1009 from bkueng/platform_build_cmd
...
podman_compose.py: support "platform" property in the build command
2024-07-27 00:04:54 +03:00
Songmin Li
34f5268e37
Add unittest for rec_subs
...
Signed-off-by: Songmin Li <lisongmin@protonmail.com>
2024-07-27 00:04:06 +03:00
Songmin Li
b5eaf314ad
Support variable substitution with service's environment
...
This commit introduces the ability to substitute environment variables
within the 'environment' section of the service definition.
This allows for more dynamic configuration of services.
Signed-off-by: Songmin Li <lisongmin@protonmail.com>
2024-07-27 00:04:06 +03:00
Beat Küng
b3c49df6eb
podman_compose.py: support "platform" property in the build command
...
This was already added to container_to_args() in https://github.com/containers/podman-compose/pull/470
which is used for the 'up' and 'run' commands.
Definition in the schema: https://github.com/compose-spec/compose-spec/blob/main/schema/compose-spec.json#L329
Signed-off-by: Beat Küng <beat-kueng@gmx.net>
2024-07-26 23:58:11 +03:00
Povilas Kanapickas
dbbd695463
Merge pull request #1008 from mokibit/automate-deps-test
...
tests/integration: Automate manual `deps` test
2024-07-23 23:12:17 +03:00
Povilas Kanapickas
1b1d3d8c25
Merge pull request #1010 from jasonchuanet/docs_uidmaps_gidmaps
...
Update docs+messages to reflect uidmaps/gidmaps code
2024-07-23 23:11:00 +03:00
Jason Chua
7d7e64fe5a
Update docs+messages to reflect uidmaps/gidmaps code
...
Signed-off-by: Jason Chua <jasonc1804@gmail.com>
2024-07-22 20:54:41 -07:00
Monika Kairaityte
3c9c18c6e0
tests/integration: Automate deps
manual test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2024-07-22 15:19:34 +02:00
Povilas Kanapickas
d0a2a44442
Merge pull request #1003 from njhanley/remove-branch-names-from-contrib-docs
...
Remove references to nonexistent devel and stable branches
2024-07-19 19:11:48 +03:00
Nick Hanley
1e66c28bbb
Remove references to nonexistent devel and stable branches
...
Closes #894
Signed-off-by: Nick Hanley <nicholasjhanley@gmail.com>
2024-07-18 21:41:59 -04:00
Povilas Kanapickas
b6eadd56b1
Merge pull request #1002 from nerilex/main
...
Add `--network=none` if `network_mode: none` is set
2024-07-17 05:19:19 +03:00
Povilas Kanapickas
d95b4d026b
Add newsfragment
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-07-17 01:43:45 +03:00
bg
e2eb883709
Add --network=none
if network_mode: none
is set; fixes #1001 .
...
Signed-off-by: bg <bg@nerilex.org>
2024-07-17 01:41:04 +03:00
Povilas Kanapickas
0866492a7e
Merge pull request #1000 from zoumingzhe/main
...
Support python direct call _parse_args or run
2024-07-15 18:48:39 +03:00
Mingzhe Zou
85050097e5
Support python direct call _parse_args or run
...
For example:
```
>>> from podman_compose import podman_compose
>>> podman_compose._parse_args(['version'])
>>> podman_compose.run(['help'])
```
Signed-off-by: Mingzhe Zou <zoumingzhe@qq.com>
2024-07-15 12:04:39 +08:00
Povilas Kanapickas
daab93b762
Merge pull request #997 from mokibit/automate-build-tests
...
Automate manual `build` tests
2024-07-08 22:42:00 +03:00
Monika Kairaityte
9fe30387ee
tests/integration: Automate 'build_fail' manual test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2024-07-08 21:37:29 +02:00
Monika Kairaityte
0f8348bea7
tests/integration: Automate 'build' manual test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2024-07-08 21:36:29 +02:00
Povilas Kanapickas
55ab3fa7f7
Merge pull request #994 from swick/wip/build-labels
...
Pass build description labels to podman build
2024-07-08 19:20:22 +03:00
Povilas Kanapickas
2091ade7b1
Add newsfragment
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-07-08 19:15:16 +03:00
Sebastian Wick
ca58d7cd58
Pass build description labels to podman build
...
The Compose Specification supports adding labels to the build image
which is also used in practice. Support this and pass the labels to
`podman build`.
Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
2024-07-08 19:15:16 +03:00
Povilas Kanapickas
3296c8d34f
Merge pull request #993 from p12tic/compose-file-links
...
Don't resolve links to compose file
2024-07-06 19:35:18 +03:00
Povilas Kanapickas
dab6b1b98d
Merge pull request #992 from p12tic/docker-compose-name-compat
...
Add a way to remove dashes in default network names
2024-07-06 18:56:25 +03:00
Povilas Kanapickas
5bf4c0fdbe
Add a way to remove dashes in default network names
...
This is the behavior exhibited by docker compose. The network names are
user-visible through external networks, so previously anyone who
migrated from docker-compose needed to change their configuration. Now
it is possible to select compatibility via a flag in x-podman global
dictionary.
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-07-06 18:50:25 +03:00
Povilas Kanapickas
67c5352c3a
Extract default_network_name_for_project()
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-07-06 18:32:09 +03:00
Povilas Kanapickas
5e0f7e5e19
Merge pull request #990 from p12tic/tests-single-container-up
...
tests: Add integration tests for up -d with single container at a time
2024-07-06 01:06:23 +03:00
Povilas Kanapickas
5040a37d47
tests: Add integration tests for up -d with single container at a time
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-07-06 00:59:50 +03:00
Povilas Kanapickas
c82859b89f
Merge pull request #989 from p12tic/github-install-requirements-unconditionally
...
github: Install requirements unconditionally
2024-07-04 09:19:30 +03:00
Povilas Kanapickas
29195be77c
github: Install requirements unconditionally
...
This makes tests less brittle as any renames to requirements files will
be noticed.
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-07-04 09:17:27 +03:00
Povilas Kanapickas
1c74d6cd11
Merge pull request #988 from p12tic/tests-discovery
...
Discover tests instead of passing a list of files to unittest
2024-07-03 19:52:56 +03:00
Povilas Kanapickas
9a4af0ce62
Discover tests instead of passing a list of files to unittest
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-07-03 19:50:13 +03:00
Povilas Kanapickas
0517b9e34c
Merge pull request #987 from p12tic/check-if-pod-exists-before-creating
...
Check whether pod exists before trying to create one
2024-07-03 19:35:28 +03:00
Povilas Kanapickas
24038dace3
Check whether pod exists before trying to create one
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2024-07-03 19:31:13 +03:00
Povilas Kanapickas
0ea4cbe091
Merge pull request #984 from mokibit/reduce-path-calculation-duplication
...
tests/integration: Reduce base path calculation duplication
2024-07-03 09:13:49 +03:00
Monika Kairaityte
2056e703d5
tests/integration: Reduce base path calculation duplication
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2024-07-03 09:09:25 +03:00
Povilas Kanapickas
137c6207b2
Merge pull request #981 from mokibit/add-unittests-for-secrets
...
unittests: Added unit tests for podman-compose secrets
2024-07-02 20:52:34 +03:00