Skip to content

Commit

Permalink
Merge branch 'master' into feature/enable-ipc
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinkum0009 authored Sep 3, 2024
2 parents c8b929d + 754f3fa commit a42eb34
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rtwcli/rtw_cmds/rtw_cmds/workspace/create_verb.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class CreateVerbArgs:
disable_nvidia: bool = False
docker: bool = False
enable_ipc: bool = False
disable_upgrade: bool = False

@property
def ws_name(self) -> str:
Expand Down Expand Up @@ -392,6 +393,12 @@ def add_arguments(self, parser: argparse.ArgumentParser, cli_name: str):
help="Enable IPC for the docker workspace.",
default=False,
)
parser.add_argument(
"--disable-upgrade",
action="store_true",
help="Disable execution of 'apt-get upgrade' when creating workspace.",
default=False,
)
parser.add_argument(
"--ws-repos-file-name",
type=str,
Expand Down Expand Up @@ -608,7 +615,7 @@ def generate_intermediate_dockerfile_content(self, create_args: CreateVerbArgs)
return textwrap.dedent(
f"""
FROM {create_args.base_image_name}
RUN apt-get update && apt-get upgrade -y
RUN apt-get update {"&& apt-get upgrade -y" if not create_args.disable_upgrade else ""}
{apt_packages_cmd}
{python_packages_cmd}
{rtw_clone_cmd}
Expand Down

0 comments on commit a42eb34

Please sign in to comment.