diff options
Diffstat (limited to 'osmo-bsc-master/Dockerfile')
-rw-r--r-- | osmo-bsc-master/Dockerfile | 80 |
1 files changed, 79 insertions, 1 deletions
diff --git a/osmo-bsc-master/Dockerfile b/osmo-bsc-master/Dockerfile index 65ec5d4..74a6d85 100644 --- a/osmo-bsc-master/Dockerfile +++ b/osmo-bsc-master/Dockerfile @@ -34,6 +34,84 @@ 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_BSC_BRANCH="master" RUN git clone https://gerrit.osmocom.org/osmo-bsc.git @@ -44,7 +122,7 @@ RUN cd osmo-bsc && \ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_BSC_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure && \ + ./configure --enable-sanitize && \ make "-j$(nproc)" install VOLUME /data |