Skip to content

Commit

Permalink
🐛 qontract-cli erv2: selinux and podman support (#4817)
Browse files Browse the repository at this point in the history
  • Loading branch information
chassing authored Jan 21, 2025
1 parent 208b36b commit fad0e58
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tools/cli_commands/erv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ def build_cdktf(self, credentials: Path) -> None:
"run",
"--name",
"erv2",
"--mount",
f"type=bind,source={input_file!s},target=/inputs/input.json",
"--mount",
f"type=bind,source={credentials!s},target=/credentials",
"-v",
f"{input_file!s}:/inputs/input.json:Z",
"-v",
f"{credentials!s}:/credentials:Z",
"-e",
"AWS_SHARED_CREDENTIALS_FILE=/credentials",
"--entrypoint",
Expand Down Expand Up @@ -236,10 +236,10 @@ def enter_shell(self, credentials: Path) -> None:
"erv2-debug-shell",
"--rm",
"-it",
"--mount",
f"type=bind,source={input_file!s},target=/inputs/input.json",
"--mount",
f"type=bind,source={credentials!s},target=/credentials",
"-v",
f"{input_file!s}:/inputs/input.json:Z",
"-v",
f"{credentials!s}:/credentials:Z",
"-e",
"AWS_SHARED_CREDENTIALS_FILE=/credentials",
"--entrypoint",
Expand Down Expand Up @@ -269,10 +269,10 @@ def force_unlock(self, credentials: Path, lock_id: str) -> None:
"--name",
"erv2-unlock",
"--rm",
"--mount",
f"type=bind,source={input_file!s},target=/inputs/input.json",
"--mount",
f"type=bind,source={credentials!s},target=/credentials",
"-v",
f"{input_file!s}:/inputs/input.json:Z",
"-v",
f"{credentials!s}:/credentials:Z",
"-e",
"AWS_SHARED_CREDENTIALS_FILE=/credentials",
"--entrypoint",
Expand Down

0 comments on commit fad0e58

Please sign in to comment.