Sign inSign up

hectorvent/tg2sip-builder

By hectorvent

Updated about 5 years ago

Image to use on builder process for tg2sip-gateway

Image
0

1.6K

hectorvent/tg2sip-builder repository overview

TG2SIP Builder

This image is use to build tg2sip gateway

Usage:

git clone https://github.com/hectorvent/tg2sip
cd tg2sip 

# Create docker build env
tg2sip_builder=$(docker run -v `pwd`:/src -d  -w /src hectorvent/tg2sip-builder:buster tail -f /dev/null)

## Build 
docker exec $tg2sip_builder  cmake -DCMAKE_BUILD_TYPE=Release .
docker exec $tg2sip_builder  cmake --build .

# stop and clean env
docker stop $tg2sip_builder
docker rm $tg2sip_builder

or just:

git clone https://github.com/hectorvent/tg2sip
cd tg2sip
./build.sh

Build this image

FROM debian:buster-slim

RUN apt-get update \
	&& apt-get install -y --no-install-recommends \
		build-essential git \
		wget ca-certificates \
		pkg-config libopus-dev libssl-dev \
		zlib1g-dev gperf ccache \
	&& rm -rf /var/lib/apt/lists/*

RUN wget https://cmake.org/files/v3.9/cmake-3.9.6-Linux-x86_64.sh \
    && sh cmake-3.9.6-Linux-x86_64.sh --prefix=/usr --exclude-subdir \
    && rm -rf cmake-3.9.6-Linux-x86_64.sh


RUN git clone https://github.com/tdlib/td.git \
    && cd td \
    && git reset --hard v1.2.0 \
    # && git reset --hard v1.5.0 \
    && mkdir build \
    && cd build \
    && cmake -DCMAKE_BUILD_TYPE=Release .. \
    && cmake --build . --target install \
    && cd / \
    && rm -rf td

COPY config_site.h /

RUN git clone https://github.com/pjsip/pjproject.git \
    && cd pjproject \
    && git reset --hard 2.9 \
    && cp /config_site.h pjlib/include/pj \
    && ./configure --disable-sound CFLAGS="-O3 -DNDEBUG" \
    && make dep && make && make install \
    && cd / \
    && rm -rf pjproject \
    && rm -rf config_site.h 

RUN git clone -n https://github.com/gabime/spdlog.git \
    && cd spdlog \
    && git checkout tags/v0.17.0 \
    # && git checkout tags/v1.4.2 \
    && mkdir build \
    && cd build \
    && cmake -DCMAKE_BUILD_TYPE=Release -DSPDLOG_BUILD_EXAMPLES=OFF -DSPDLOG_BUILD_TESTING=OFF .. \
    && cmake --build . --target install \
    && cd / \
    && rm -rf spdlog

TODO:

  • Update spdlog from v0.17.0 to v1.4.2
  • Update tdlib from v1.2.0 to v1.5.0

Tag summary

Content type

Image

Digest

Size

236.9 MB

Last updated

about 5 years ago

docker pull hectorvent/tg2sip-builder