Permalink
Browse files

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>
  • Loading branch information...
huikang committed May 16, 2017
1 parent 6aa8b76 commit 5eb9bc311b52bd95e498774073a2a6c0a2fc79f8
Showing with 26 additions and 0 deletions.
  1. +11 −0 Dockerfile.build
  2. +15 −0 build-docker.sh
@@ -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
@@ -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"

0 comments on commit 5eb9bc3

Please sign in to comment.