Skip to content

Commit

Permalink
V0.3.1 (#18)
Browse files Browse the repository at this point in the history
- [ASTERISK] updated to 15.3.0
- [MONGO-C-DRIVER] updated to 1.9.4
- [BUILD] update patch files after building
- [DOCKER] leave the building results of mongo-c-driver as an archive.
- [DOCKERFILE] control messy logs while building
  • Loading branch information
minoruta authored Apr 25, 2018
1 parent d170a66 commit a5de308
Show file tree
Hide file tree
Showing 7 changed files with 2,702 additions and 23 deletions.
23 changes: 15 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ RUN mkdir ast_mongo
#COPY ./LICENSE ast_mongo/
#COPY README.md ast_mongo/

RUN apt update -q \
&& apt install -y -q \
RUN apt -qq update \
&& apt -qq install -y \
libssl-dev \
libsasl2-dev \
libncurses5-dev \
Expand All @@ -35,8 +35,10 @@ 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 \
&& ./configure --disable-automatic-init-and-cleanup > /dev/null \
&& make all install \
&& make all install > make.log \
&& make clean \
&& cd $HOME \
&& tar czf mongo-c-driver-$VERSION_MONGOC.tgz mongo-c-driver-$VERSION_MONGOC \
&& rm -rf mongo-c-driver-$VERSION_MONGOC

RUN cd $HOME \
Expand Down Expand Up @@ -65,10 +67,15 @@ RUN cd $HOME \
&& ./bootstrap.sh \
&& ./configure --disable-xmldoc > /dev/null \
&& tar czf $HOME/ast_mongo/asterisk-$VERSION_ASTERISK-config.log.tgz config.log \
&& make all \
&& make install \
&& make all > make.log \
&& make install > install.log \
&& ldconfig /usr/lib \
&& make samples
&& make samples > samples.log \
&& make clean > clean.log


CMD asterisk -c > /dev/null
#
# Copy back the updated patches to host & Launch asterisk
#
CMD cp /root/ast_mongo/ast_mongo-* /mnt/ast_mongo/patches/ \
&& cp /root/ast_mongo/mongodb.for.asterisk.patch /mnt/ast_mongo/src/ \
&& asterisk -c > /dev/null
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,12 @@ Name of DB |Name of Collection |Comment
- GNU GENERAL PUBLIC LICENSE Version 2
- Any other resources and files:
- The MIT License (MIT)
- Copyright: (C) 2016-17, KINOSHITA minoru, [viktike][9] for cel_mongodb
- Copyright: (C) 2016-2018, KINOSHITA minoru, [viktike][9] for cel_mongodb


[1]: http://asterisk.org/ "Asterisk"
[2]: https://mongodb.org/ "MongoDB"
[3]: https://github.com/mongodb/mongo-c-driver "mongo_c_driver"
[4]: http://www.pjsip.org "PJSIP"
[5]: https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime
[6]: https://github.com/minoruta/ast_mongo/tree/master/asterisk
[9]: https://github.com/viktike
Loading

0 comments on commit a5de308

Please sign in to comment.