Skip to content

Commit

Permalink
Fix bug in interactive session image name
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-a-barnes committed Mar 28, 2022
1 parent 5e57cf9 commit eec24b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mdimechanic/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
def start( base_path ):
mdimechanic_yaml = get_mdimechanic_yaml( base_path )

# Name of the image to run
image_name = mdimechanic_yaml['docker']['image_name']

# Find the location of .gitconfig file
gitconfig_line = ""
host_home_dir = os.path.expanduser('~')
Expand Down Expand Up @@ -42,5 +45,5 @@ def start( base_path ):
run_line += " -v " + str( base_path ) + ":/repo"
run_line += gitconfig_line
run_line += ssh_line
run_line += " -it mdi/tinker bash -c \"cd /repo && bash\""
run_line += " -it " + str(image_name) + " bash -c \"cd /repo && bash\""
os.system(run_line)

0 comments on commit eec24b3

Please sign in to comment.