Add build scripts & docker scripts

Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
This commit is contained in:
Prasanna Bhat 2020-04-12 11:23:22 +05:30
parent b46bd7ffff
commit 8fc3f4bc71
6 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/bin/bash
set -e
# It is assumed that this script is run from root of the project
WORKSPACE=$(pwd)
IMAGE_NAME="ubuntu:cyclonedds"
CONTAINER_NAME="cyclonedds"
echo "WORKSPACE is $WORKSPACE"
docker run -it --rm -v $WORKSPACE/:/cyclonedds --workdir /cyclonedds $IMAGE_NAME /bin/bash -c "./scripts/build.sh"
# Launch the docker after build
docker run --name $CONTAINER_NAME -it -v $WORKSPACE/:/cyclonedds --workdir /cyclonedds $IMAGE_NAME /bin/bash
# If you want to connect to the above docker to run cyclonedds examples (multiple apps in separate terminals) , use the below command
docker exec -it cyclonedds /bin/bash