From c35bd465131c68ef565da7ab902bda76f706acf3 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 10 Oct 2025 16:36:16 +0200 Subject: [PATCH 1/2] Docker-compose: don't be quite. Already did it for few another cases, like 35a1814dae4158084b4d3bf13c1553c26cbdea2d Reasoning is the same - at very first run, when docker downloads a lot of data, it seems that runo is just hanging. --- runo | 7 +------ tests/unit/test_runo.py | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/runo b/runo index 461d5c4..bb97488 100755 --- a/runo +++ b/runo @@ -29,7 +29,7 @@ from typing import ( Union, ) -__version__ = "25.09.16-5517b2d8" +__version__ = "25.10.10-816388d0" # runo uses .toml format of config files, but parsers for this format # might be not available in old python versions (only in 3.11 tomllib @@ -349,11 +349,6 @@ class Composition: def prepare(self): option_to_value = _option_to_value(self._compose_options_from_config) - progress_option = _get_value_from_options(option_to_value, {"--progress"}) - if not progress_option: - # We do want to be quite by default. - self._generated_options.extend(["--progress", "quiet"]) - # We must support overriding of file name, at least because docker compose # has multiple files support and users may want to use something like: # docker compose -f docker-compose.yml -f docker-compose.override.yml run ... diff --git a/tests/unit/test_runo.py b/tests/unit/test_runo.py index 1a2f559..83fe105 100644 --- a/tests/unit/test_runo.py +++ b/tests/unit/test_runo.py @@ -1232,8 +1232,6 @@ def expected_calls(self, command: dict, run_options: List[str], env_specific_dat [ "docker", "compose", - "--progress", - "quiet", *expected_docker_compose_options, "run", ] From 4ec02e44ba48bc8a72b5a66d4cc6fb9c7c556260 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 10 Oct 2025 16:40:29 +0200 Subject: [PATCH 2/2] Docker-compose: auto-rebuild app if content of Docker file changed This doesn't happen by default, we have to force docker do this. --- runo | 4 ++-- tests/unit/test_runo.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runo b/runo index bb97488..054d3cc 100755 --- a/runo +++ b/runo @@ -29,7 +29,7 @@ from typing import ( Union, ) -__version__ = "25.10.10-816388d0" +__version__ = "25.10.10-e879d7bf" # runo uses .toml format of config files, but parsers for this format # might be not available in old python versions (only in 3.11 tomllib @@ -364,7 +364,7 @@ class Composition: [self.compose_base] + self._generated_options + self._compose_options_from_config - + ["run"] + + ["run --build"] + docker_run_options + [self._cfg["docker_compose_service"]] + [command_to_run] diff --git a/tests/unit/test_runo.py b/tests/unit/test_runo.py index 83fe105..531d1cd 100644 --- a/tests/unit/test_runo.py +++ b/tests/unit/test_runo.py @@ -1233,7 +1233,7 @@ def expected_calls(self, command: dict, run_options: List[str], env_specific_dat "docker", "compose", *expected_docker_compose_options, - "run", + "run --build", ] + _expected_docker_run_options(docker_run_options_str) + [container_config["docker_compose_service"]]