Skip to content

Commit

Permalink
[cli] Standalone rtw ws create (#219)
Browse files Browse the repository at this point in the history
* [cli] backup standalone

* [cli] first version of ws import from standalone image, but needs fix when sourcing empty ws folder

* [cli] refactor to allow standalone workspaces

* [cli] show error for existing ws first

* [cli] change python to python3 in setup.bash
  • Loading branch information
muritane authored Jun 11, 2024
1 parent 5f88f40 commit c87d77e
Show file tree
Hide file tree
Showing 13 changed files with 738 additions and 218 deletions.
5 changes: 5 additions & 0 deletions rtwcli/rtw_cmds/rtw_cmds/docker/verbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from rtwcli.docker_utils import (
docker_exec_interactive_bash,
docker_start,
fix_missing_xauth_file,
is_docker_container_running,
)
from rtwcli.verb import VerbExtension
Expand All @@ -38,6 +39,10 @@ def main(self, *, args):
print(
f"The docker container '{ws.docker_container_name}' is not running, starting it now."
)
# fix missing .xauth file if it is not present
if not fix_missing_xauth_file(ws.docker_container_name):
print(f"Failed to fix missing .xauth file for '{ws.docker_container_name}'.")
return

if not docker_start(ws.docker_container_name):
print(f"Failed to start docker container '{ws.docker_container_name}'.")
Expand Down
Loading

0 comments on commit c87d77e

Please sign in to comment.