diff options
Diffstat (limited to 'osmo-pcu-master/Dockerfile')
-rw-r--r-- | osmo-pcu-master/Dockerfile | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/osmo-pcu-master/Dockerfile b/osmo-pcu-master/Dockerfile index ac0fc1e..a108996 100644 --- a/osmo-pcu-master/Dockerfile +++ b/osmo-pcu-master/Dockerfile @@ -23,6 +23,25 @@ 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 \ + && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --enable-force-io-select \ + --prefix=/usr/local --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_PCU_BRANCH="master" RUN git clone https://gerrit.osmocom.org/osmo-pcu.git @@ -32,9 +51,10 @@ RUN cd osmo-pcu && \ git fetch && git checkout $OSMO_PCU_BRANCH && \ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_PCU_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" && \ autoreconf -fi && \ - ./configure && \ - make "-j$(nproc)" install + ./configure --enable-sanitize && \ + make "-j$(nproc)" V=1 install VOLUME /data |