diff options
Diffstat (limited to 'osmo-msc-master/Dockerfile')
-rw-r--r-- | osmo-msc-master/Dockerfile | 81 |
1 files changed, 80 insertions, 1 deletions
diff --git a/osmo-msc-master/Dockerfile b/osmo-msc-master/Dockerfile index 7a0362d..9ab5697 100644 --- a/osmo-msc-master/Dockerfile +++ b/osmo-msc-master/Dockerfile @@ -42,6 +42,85 @@ 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 \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + && 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 \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG OSMO_STP_BRANCH="master" + +RUN git clone https://gerrit.osmocom.org/libosmo-sccp.git +ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-sccp/+/$OSMO_STP_BRANCH?format=TEXT /tmp/commit +RUN cd libosmo-sccp && \ + git fetch && git checkout $OSMO_STP_BRANCH && \ + (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_STP_BRANCH || exit 1); \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + autoreconf -fi && \ + ./configure --enable-sanitize && \ + make "-j$(nproc)" install && \ + install examples/.libs/sccp_demo_user /usr/local/bin/ && \ + ldconfig + +ARG OSMO_MGW_BRANCH="master" + +RUN git clone https://gerrit.osmocom.org/osmo-mgw.git +ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-mgw/+/$OSMO_MGW_BRANCH?format=TEXT /tmp/commit-osmo-mgw + + +RUN cd osmo-mgw && \ + git fetch && git checkout $OSMO_MGW_BRANCH && \ + (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_MGW_BRANCH || exit 1); \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + autoreconf -fi && \ + ./configure && \ + make "-j$(nproc)" install && \ + ldconfig + ARG OSMO_MSC_BRANCH="master" RUN git clone https://gerrit.osmocom.org/osmo-msc.git @@ -52,7 +131,7 @@ RUN cd osmo-msc && \ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_MSC_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure --enable-smpp --enable-iu && \ + ./configure --enable-smpp --enable-iu --enable-sanitize && \ make "-j$(nproc)" install VOLUME /data |