Build by docker

To build, run ./build-docker.sh.
The outputs will be in the same directory.

Signed-off-by: Hui Kang <kangh@us.ibm.com>
This commit is contained in:
Hui Kang 2017-05-16 16:55:35 +00:00
parent 6aa8b7685b
commit 5eb9bc311b
2 changed files with 26 additions and 0 deletions

11
Dockerfile.build Normal file
View File

@ -0,0 +1,11 @@
FROM ubuntu:16.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
emacs-nox \
build-essential \
libssl-dev sqlite3 \
libsqlite3-dev \
libevent-dev \
g++ \
libboost-dev \
libevent-dev

15
build-docker.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -o xtrace
dir=`pwd`
echo "$dir"
build_image=coturnbuild
dockerargs="--privileged -v ${dir}:/root/coturn -w /root/coturn"
container_env=' -e "INSIDECONTAINER=-incontainer=true"'
docker="docker run --rm -it ${dockerargs} ${container_env} ${build_image}"
docker build -f Dockerfile.build -t ${build_image} .
${docker} bash -c "./configure && make"