blob: 1ae54428cfdbc512c584f95bcd0f80b6e64184fb [file] [log] [blame]
Piotr Krysik5ccedad2018-02-20 12:58:45 +01001FROM kalilinux/kali-linux-docker
2MAINTAINER Piotr Krysik
3
Vasil Velichkov8c4eefb2018-04-24 23:27:40 +03004RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
Piotr Krysik5ccedad2018-02-20 12:58:45 +01005 cmake \
6 autoconf \
7 libtool \
Vasil Velichkov3f6ab152018-02-21 05:57:31 +02008 pkg-config \
Piotr Krysik5ccedad2018-02-20 12:58:45 +01009 build-essential \
10 python-docutils \
11 libcppunit-dev \
12 swig \
13 doxygen \
14 liblog4cpp5-dev \
15 python-scipy \
16 gnuradio-dev \
17 gr-osmosdr \
18 libosmocore-dev
19
20COPY ./ /src/
21RUN ls /src
22
23RUN mkdir /src/build
24WORKDIR /src/build
25RUN cmake .. && \
Vasil Velichkov0feb4ab2018-02-21 06:12:04 +020026 # The parallel build sometimes fails when the .grc_gnuradio
27 # and .gnuradio directories do not exist
28 mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \
Vasil Velichkov084b14e2018-04-09 13:00:55 +030029 # Workaround for the grcc failure
30 # https://github.com/ptrkrysik/gr-gsm/pull/378#issuecomment-379587145
31 ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3 && \
Vasil Velichkov0feb4ab2018-02-21 06:12:04 +020032 make -j $(nproc) && \
Piotr Krysik5ccedad2018-02-20 12:58:45 +010033 make install && \
34 ldconfig && \
Vasil Velichkove153e722018-06-05 20:01:55 +030035 make CTEST_OUTPUT_ON_FAILURE=1 test