aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dockerfiles/Kali.docker
blob: 1ae54428cfdbc512c584f95bcd0f80b6e64184fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM kalilinux/kali-linux-docker
MAINTAINER Piotr Krysik

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
    cmake \
    autoconf \
    libtool \
    pkg-config \
    build-essential \
    python-docutils \
    libcppunit-dev \
    swig \
    doxygen \
    liblog4cpp5-dev \
    python-scipy \
    gnuradio-dev \
    gr-osmosdr \
    libosmocore-dev

COPY ./ /src/
RUN ls /src

RUN mkdir /src/build
WORKDIR /src/build
RUN cmake .. && \
    # The parallel build sometimes fails when the .grc_gnuradio
    # and .gnuradio directories do not exist
    mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \
    # Workaround for the grcc failure
    # https://github.com/ptrkrysik/gr-gsm/pull/378#issuecomment-379587145
    ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3 && \
    make -j $(nproc) && \
    make install && \
    ldconfig && \
    make CTEST_OUTPUT_ON_FAILURE=1 test