Skip to content

Commit

Permalink
support podman (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzhangbjz authored Aug 16, 2024
1 parent 36d5d67 commit 915d233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions acto/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 915d233

Please sign in to comment.