-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ASTERISK] updated Asterisk to 15.4.0 (#19)
[ASTERISK] updated Asterisk to 15.4.0 [SRTP] updated to 2.1.0 [MONGOC] updated to 1.9.5 [PATCH] removed old patches [README] updated
- Loading branch information
Showing
14 changed files
with
1,038 additions
and
12,918 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,17 @@ ARG VERSION_UBUNTU=latest | |
FROM ubuntu:$VERSION_UBUNTU | ||
MAINTAINER KINOSHITA minoru <[email protected]> | ||
|
||
ARG VERSION_ASTERISK=15.1.3 | ||
ARG VERSION_MONGOC=1.8.2 | ||
# | ||
# Essential arguments | ||
# | ||
ARG VERSION_ASTERISK | ||
ARG VERSION_MONGOC | ||
ARG VERSION_LIBSRTP | ||
|
||
WORKDIR /root | ||
RUN mkdir src | ||
COPY src/* src/ | ||
RUN mkdir ast_mongo | ||
#COPY ./LICENSE ast_mongo/ | ||
#COPY README.md ast_mongo/ | ||
|
||
RUN apt -qq update \ | ||
&& apt -qq install -y \ | ||
|
@@ -22,7 +24,6 @@ RUN apt -qq update \ | |
libsqlite3-dev \ | ||
libjansson-dev \ | ||
libcurl4-openssl-dev \ | ||
libsrtp0-dev \ | ||
pkg-config \ | ||
build-essential \ | ||
autoconf \ | ||
|
@@ -31,6 +32,24 @@ RUN apt -qq update \ | |
file \ | ||
git | ||
|
||
# | ||
# Prepare strp | ||
# | ||
WORKDIR /root | ||
RUN wget https://github.com/cisco/libsrtp/archive/v$VERSION_LIBSRTP.tar.gz \ | ||
&& tar xzf v$VERSION_LIBSRTP.tar.gz \ | ||
&& rm v$VERSION_LIBSRTP.tar.gz \ | ||
&& cd libsrtp-$VERSION_LIBSRTP \ | ||
&& ./configure > /dev/null \ | ||
&& make \ | ||
&& make install \ | ||
&& make clean \ | ||
&& ldconfig \ | ||
&& cd .. | ||
|
||
# | ||
# Prepare MongoDB C Driver | ||
# | ||
RUN cd $HOME \ | ||
&& wget -nv "https://github.com/mongodb/mongo-c-driver/releases/download/$VERSION_MONGOC/mongo-c-driver-$VERSION_MONGOC.tar.gz" -O - | tar xzf - \ | ||
&& cd mongo-c-driver-$VERSION_MONGOC \ | ||
|
@@ -41,6 +60,9 @@ RUN cd $HOME \ | |
&& tar czf mongo-c-driver-$VERSION_MONGOC.tgz mongo-c-driver-$VERSION_MONGOC \ | ||
&& rm -rf mongo-c-driver-$VERSION_MONGOC | ||
|
||
# | ||
# Build and install Asterisk with patches for ast_mongo | ||
# | ||
RUN cd $HOME \ | ||
&& wget -nv "http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$VERSION_ASTERISK.tar.gz" -O - | tar -zxf - \ | ||
&& cd asterisk-$VERSION_ASTERISK \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.