aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-hnodeb-master/Dockerfile
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-12-14 12:42:55 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2024-05-21 12:05:55 +0200
commitfc8fb8e6ebc7ba73d58ee75bfa4c3166d0801e39 (patch)
tree6bceabd3c2ba0f6bbeb05da8f2d610cc7bfb6818 /osmo-hnodeb-master/Dockerfile
parentf6f9f71be00879585854991f9c740951069669e0 (diff)
DONTMERGE
Diffstat (limited to 'osmo-hnodeb-master/Dockerfile')
-rw-r--r--osmo-hnodeb-master/Dockerfile54
1 files changed, 53 insertions, 1 deletions
diff --git a/osmo-hnodeb-master/Dockerfile b/osmo-hnodeb-master/Dockerfile
index ffdb639..4fd0f3e 100644
--- a/osmo-hnodeb-master/Dockerfile
+++ b/osmo-hnodeb-master/Dockerfile
@@ -15,6 +15,58 @@ RUN apt-get update && \
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 \
+ && ./configure \
+ --disable-doxygen \
+ --disable-pcsc \
+ --prefix=/usr/local \
+ --enable-sanitize \
+ --enable-libsctp \
+ && make -j5 \
+ && 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 \
+ && ./configure \
+ --disable-doxygen \
+ --prefix=/usr/local \
+ --enable-sanitize \
+ && make -j5 \
+ && 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 \
+ && ./configure \
+ --disable-doxygen \
+ --prefix=/usr/local \
+ --enable-sanitize \
+ --enable-libsctp \
+ && make -j8 \
+ && make install \
+ && make distclean && ldconfig
+
ARG OSMO_IUH_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-iuh.git
@@ -39,7 +91,7 @@ RUN cd osmo-hnodeb && \
(git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_HNODEB_BRANCH || exit 1); \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
- ./configure && \
+ ./configure --enable-sanitize && \
make "-j$(nproc)" install && \
ldconfig