Skip to content

Commit

Permalink
another one
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrf45 committed Dec 1, 2024
1 parent 493853e commit 757fce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aegis-wrapper/aegis/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

def main():
parser = argparse.ArgumentParser(description="Aegis Docker Wrapper TUI")
parser.add_argument('command', choices=[
'start', 'stop', 'destroy', 'pull'],
parser.add_argument('command', choices=['start', 'stop', 'destroy', 'pull'],
help="Action to perform")
# parser.add_argument('-img', help="Docker image to use")
parser.add_argument('-img', '--image', help="Docker image to use"),
parser.add_argument('-n', '--name', help="project/container name")
parser.add_argument('--host-network', action='store_true',
help="Enable host networking")
Expand Down
2 changes: 2 additions & 0 deletions aegis-wrapper/aegis/docker_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def pull_image(self, image_name: str):
progress.remove_task(task)

def start_container(self,
image_name: str,
project_name: str,
name: str,
host_network: bool,
Expand All @@ -70,6 +71,7 @@ def start_container(self,
'bind': '/tmp/.X11-unix', 'mode': 'rw'}

container = self.client.containers.run(
image=image_name,
name=project_name,
command="zsh",
detach=False,
Expand Down

0 comments on commit 757fce4

Please sign in to comment.