Add build scripts & docker scripts
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
This commit is contained in:
parent
b46bd7ffff
commit
8fc3f4bc71
6 changed files with 127 additions and 0 deletions
16
scripts/docker/build_cyclonedds.sh
Executable file
16
scripts/docker/build_cyclonedds.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue