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

Proper folder before executing docker run

Open alexjaw opened this issue 5 years ago • 2 comments

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

alexjaw avatar Jul 29 '19 10:07 alexjaw

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 wingman
software

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

jwgrenning avatar Jul 31 '19 18:07 jwgrenning

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

jwgrenning avatar Jul 31 '19 19:07 jwgrenning