From aeb234b4501e1e45b4bb2f0449dfc1b7197e533a Mon Sep 17 00:00:00 2001 From: enfreck <57185478+enfreck@users.noreply.github.com> Date: Sun, 22 Jan 2023 20:05:24 -0500 Subject: [PATCH] Update build.depl and build.fob with path handling --- ectf_tools/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ectf_tools/build.py b/ectf_tools/build.py index 4bb454c..cd81cf9 100644 --- a/ectf_tools/build.py +++ b/ectf_tools/build.py @@ -100,7 +100,7 @@ async def depl( depl_dir = str(design.resolve() / depl_in) output = await run_shell( "docker run" - f" -v {depl_dir}:/depl_in:ro" + f' -v "{depl_dir}":/depl_in:ro' f" -v {image}.{name}.{deployment}.secrets.vol:/secrets" " --workdir=/depl_in" f" {tag} make SECRETS_DIR=/secrets" @@ -257,8 +257,8 @@ async def make_dev( # Compile output = await run_shell( "docker run" - f" -v {str(dev_in)}:/dev_in:ro" - f" -v {str(dev_out)}:/dev_out" + f' -v "{str(dev_in)}":/dev_in:ro' + f' -v "{str(dev_out)}":/dev_out' f" -v {image}.{name}.{deployment}.secrets.vol:/secrets" " --workdir=/root" f" {tag} /bin/bash -c"