diff --git a/README.md b/README.md index 491f8c4ba..badcb1e7c 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ make To reproduce the bug, run the following command: ```sh -python3 -m acto.reproduce --reproduce-dir test/cassop-330/trial-demo --config data/cass-operator/config.json +python3 -m acto.reproduce --reproduce-dir test/e2e_tests/test_data/cassop-330/trial-demo --config data/cass-operator/config.json ``` The files in the `test/cassop-330/trial-demo` directory are the sequence of CRs required to trigger this bug. diff --git a/acto/engine.py b/acto/engine.py index 5ad502134..5086cae2a 100644 --- a/acto/engine.py +++ b/acto/engine.py @@ -812,6 +812,7 @@ def __init__( self.runner_type = Runner self.checker_type = CheckerSet + self.tool = os.getenv("IMAGE_TOOL", "docker") self.__learn( context_file=context_file, @@ -1049,12 +1050,12 @@ def run( # first make sure images are present locally for image in self.context["preload_images"]: subprocess.run( - ["docker", "pull", image], + [self.tool, "pull", image], stdout=subprocess.DEVNULL, check=True, ) subprocess.run( - ["docker", "image", "save", "-o", self.images_archive] + [self.tool, "image", "save", "-o", self.images_archive] + list(self.context["preload_images"]), stdout=subprocess.DEVNULL, check=True,