Skip to content

Commit

Permalink
feat: Increase compatibiliy with podman (#284)
Browse files Browse the repository at this point in the history
* Fix security option string

* Run SSO login script with `sh -c`
  • Loading branch information
angelofenoglio authored Sep 13, 2024
1 parent b00b023 commit a382f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leverage/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(self, client, mounts: tuple = None, env_vars: dict = None):
raise Exit(1)

mounts = [Mount(source=source, target=target, type="bind") for source, target in mounts] if mounts else []
self.host_config = self.client.api.create_host_config(security_opt=["label:disable"], mounts=mounts)
self.host_config = self.client.api.create_host_config(security_opt=["label=disable"], mounts=mounts)
self.container_config = {
"image": f"{self.image}:{self.image_tag}",
"command": "",
Expand Down Expand Up @@ -405,7 +405,7 @@ def get_sso_region(self):
def sso_login(self) -> int:
region = self.get_sso_region()

with CustomEntryPoint(self, ""):
with CustomEntryPoint(self, "sh -c"):
container = self._create_container(False, command=self.AWS_SSO_LOGIN_SCRIPT)

with ContainerSession(self.client, container):
Expand Down

0 comments on commit a382f59

Please sign in to comment.