tddec-code
tddec-code copied to clipboard
Proper folder before executing docker run
The Docker setup instructions can include a little text about proper starting folder before the docker run command.
Example. Say you cloned to folder tddec-code, and you are in folder ~/github,. Then the ttd code is in folder ~/github/tddec-code. While you are in ~/github execute:
WORKING_DIR=/usr/src/tddec-code
export CPPUTEST_HOME=$WORKING_DIR/cpputest
docker run -it -v $MOUNT_DIR -w $WORKING_DIR -e CPPUTEST_HOME gcc:7 make
Hi Alex
Thanks for the feedback, can you suggest a specific change, or submit a pull request?
I'm glad you liked the book and have put my repo to good use!
James
James Grenning - Author of TDD for Embedded C - wingman-sw.com/tddec
wingman-sw.com
wingman-sw.com/blog
twitter.com/jwgrenning
facebook.com/wingman.sw
Cell: +1 847-630-0998
On 29 Jul 2019, at 5:02, Alexander Jaworowski wrote:
The Docker setup instructions can include a little text about proper starting folder before the docker run command.
Example. Say you cloned to folder tddec-code, and you are in folder ~/github,. Then the ttd code is in folder ~/github/tddec-code. While you are in ~/github execute:
WORKING_DIR=/usr/src/tddec-code export CPPUTEST_HOME=$WORKING_DIR/cpputest docker run -it -v $MOUNT_DIR -w $WORKING_DIR -e CPPUTEST_HOME gcc:7 make -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jwgrenning/tddec-code/issues/10
Are you suggesting adding
cd ~/github/tddec-code
Or in the context of the README.md, adding cd tddec-code
after git clone ...
?
MYPROJECTS=myprojects
mkdir -p $MYPROJECTS
cd $MYPROJECTS
git clone --recurse-submodules
https://github.com/jwgrenning/tddec-code.git
cd tddec-code
MOUNT_DIR=$PWD:/usr/src
WORKING_DIR=/usr/src/tddec-code
export CPPUTEST_HOME=$WORKING_DIR/cpputest
docker run -it -v $MOUNT_DIR -w $WORKING_DIR -e CPPUTEST_HOME gcc:7
make
Thanks, James
On 29 Jul 2019, at 5:02, Alexander Jaworowski wrote:
The Docker setup instructions can include a little text about proper starting folder before the docker run command.
Example. Say you cloned to folder tddec-code, and you are in folder ~/github,. Then the ttd code is in folder ~/github/tddec-code. While you are in ~/github execute:
WORKING_DIR=/usr/src/tddec-code export CPPUTEST_HOME=$WORKING_DIR/cpputest docker run -it -v $MOUNT_DIR -w $WORKING_DIR -e CPPUTEST_HOME gcc:7 make -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jwgrenning/tddec-code/issues/10