aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-cbc-master/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'osmo-cbc-master/Dockerfile')
-rw-r--r--osmo-cbc-master/Dockerfile69
1 files changed, 68 insertions, 1 deletions
diff --git a/osmo-cbc-master/Dockerfile b/osmo-cbc-master/Dockerfile
index 0e90fc8..f3f527f 100644
--- a/osmo-cbc-master/Dockerfile
+++ b/osmo-cbc-master/Dockerfile
@@ -11,6 +11,8 @@ RUN case "$DISTRO" in \
libosmocore-dev \
libosmo-netif-dev \
libulfius-dev \
+ libsctp-dev \
+ gdb \
&& \
apt-get clean \
;; \
@@ -27,6 +29,68 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
+# Download, build and install libosmocore
+ARG LIBOSMOCORE_BRANCH="master"
+RUN git clone https://gerrit.osmocom.org/libosmocore
+ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /tmp/commit-libosmocore
+
+RUN cd libosmocore \
+ && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \
+ && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \
+ && autoreconf -fi \
+ && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && ./configure \
+ --disable-doxygen \
+ --disable-pcsc \
+ --prefix=/usr/local \
+ --enable-libsctp \
+ --enable-sanitize \
+ && make -j8 \
+ && make install \
+ && make distclean && ldconfig
+
+ARG LIBOSMOABIS_BRANCH="master"
+RUN git clone https://gerrit.osmocom.org/libosmo-abis
+ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /tmp/commit-libosmoabis
+
+RUN cd libosmo-abis \
+ && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \
+ && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \
+ && autoreconf -fi \
+ && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && ./configure \
+ --disable-doxygen \
+ --enable-libsctp \
+ --prefix=/usr/local \
+ --enable-sanitize \
+ && make -j8 \
+ && make install \
+ && make distclean && ldconfig
+
+ARG LIBOSMONETIF_BRANCH="master"
+RUN git clone https://gerrit.osmocom.org/libosmo-netif
+ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /tmp/commit-libosmonetif
+
+RUN cd libosmo-netif \
+ && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \
+ && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \
+ && autoreconf -fi \
+ && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && ./configure \
+ --disable-doxygen \
+ --enable-libsctp \
+ --prefix=/usr/local \
+ --enable-sanitize \
+ && make -j8 \
+ && make install \
+ && make distclean && ldconfig
+
ARG OSMO_CBC_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-cbc.git
@@ -37,7 +101,10 @@ RUN cd osmo-cbc && \
(git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_CBC_BRANCH || exit 1); \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
- ./configure && \
+ export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \
+ && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" && \
+ ./configure --enable-sanitize && \
make "-j$(nproc)" install && \
ldconfig