tddec-code icon indicating copy to clipboard operation
tddec-code copied to clipboard

different instructions are needed to set up Docker in Windows

Open keith-at-spacee opened this issue 5 years ago • 1 comments

When running from a Windows cmd.exe command line, slightly modified settings are needed to set the environment variables and use these when kicking off Docker. I found the following to work in Windows. It assumes you have pulled the sources into folder C:\Users\YourName\tddec-code.

set PWD=/c/Users/YourName set MOUNT_DIR=%PWD%:/usr/src set WORKING_DIR=/usr/src/tddec-code set CPPUTEST_HOME=%WORKING_DIR%/cpputest

Check things out with a bash invocation as follows: C:\Users\YourName>docker run -it -v %MOUNT_DIR% -w %WORKING_DIR% -e CPPUTEST_HOME gcc:7 /bin/bash

then do the usual things like make etc.

keith-at-spacee avatar Aug 15 '19 15:08 keith-at-spacee

a proposal is in PR 13 at https://github.com/jwgrenning/tddec-code/pull/13

keith-at-spacee avatar Aug 15 '19 17:08 keith-at-spacee