Skip to content

Commit

Permalink
docker raw dir optional
Browse files Browse the repository at this point in the history
  • Loading branch information
anaismoller committed Apr 1, 2020
1 parent 3154d8a commit 5a183e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions env/launch_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def launch_docker():
parser = argparse.ArgumentParser()
parser.add_argument("--image", type=str, choices=['cpu','gpu','gpu10'],help="Use which image gpu or cpu")
parser.add_argument("--dump_dir", default=dump_dir, help='Dir to dump results')
parser.add_argument("--raw_dir", help='Optional dir to point towards data')

args = parser.parse_args()

Expand All @@ -26,6 +27,12 @@ def launch_docker():
cmd += (
f" -v {snn_dir}:/u/home/SuperNNova"
f" -v {args.dump_dir}:/u/home/snndump"
)

if parser.raw_dir:
f" -v {args.raw_dir}:/u/home/raw"

cmd += (
f" -e HOST_USER_ID={os.getuid()} "
f" -e HOST_USER_GID={os.getgid()} "
f" rnn-{args.image}:latest"
Expand Down

0 comments on commit 5a183e7

Please sign in to comment.