Skip to content

Commit

Permalink
Merge pull request #9 from paulsaxe/main
Browse files Browse the repository at this point in the history
Handling running a flowchart in Docker, the JobServer in Docker, and running without Docker.
  • Loading branch information
paulsaxe authored Mar 9, 2024
2 parents a724f55 + 846431b commit 62e772f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion seamm_exec/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,18 @@ def exec(
if mount["Destination"] == "/home":
path = Path(mount["Source"]).joinpath(*directory.parts[2:])
break
elif mount["Destination"] == "/root/SEAMM":
path = Path(mount["Source"]).joinpath(*directory.parts[3:])
break
else:
raise RuntimeError(
f"/home was not in the mounts for the container!\n{mounts=}"
"Neither /home or /root/SEAMM were in the mounts for the container!"
"\n{mounts=}"
)
else:
# Not in a Docker container, so use the path as is
path = Path(directory)

self.logger.debug(f"path = {path}\n")

self.logger.debug(pprint.pformat(config, compact=True))
Expand Down

0 comments on commit 62e772f

Please sign in to comment.