Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 1 | FROM kalilinux/kali-linux-docker |
| 2 | MAINTAINER Piotr Krysik |
| 3 | |
Vasil Velichkov | 8c4eefb | 2018-04-24 23:27:40 +0300 | [diff] [blame] | 4 | RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 5 | cmake \ |
| 6 | autoconf \ |
| 7 | libtool \ |
Vasil Velichkov | 3f6ab15 | 2018-02-21 05:57:31 +0200 | [diff] [blame] | 8 | pkg-config \ |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 9 | build-essential \ |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 10 | libcppunit-dev \ |
| 11 | swig \ |
| 12 | doxygen \ |
| 13 | liblog4cpp5-dev \ |
Vasil Velichkov | fc99ad4 | 2019-09-02 06:49:09 +0300 | [diff] [blame] | 14 | python3-docutils \ |
| 15 | python3-scipy \ |
Vasil Velichkov | 333027f | 2019-08-29 00:17:10 +0300 | [diff] [blame] | 16 | gnuradio-dev gnuradio libgmp-dev libboost-regex-dev \ |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 17 | libosmocore-dev |
| 18 | |
Vasil Velichkov | c00008f | 2019-09-02 18:19:13 +0300 | [diff] [blame] | 19 | # packages needed for gr-iqbal and gr-osmosdr |
| 20 | RUN apt-get install -y git libuhd-dev |
| 21 | |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 22 | COPY ./ /src/ |
Vasil Velichkov | c00008f | 2019-09-02 18:19:13 +0300 | [diff] [blame] | 23 | |
| 24 | RUN git clone --branch maint-3.8 --recurse-submodules https://github.com/velichkov/gr-iqbal && \ |
| 25 | cd gr-iqbal && \ |
| 26 | mkdir build && \ |
| 27 | cd build && \ |
| 28 | cmake .. && \ |
| 29 | make -j $(nproc) install |
| 30 | |
| 31 | RUN git clone --branch maint-3.8 https://github.com/velichkov/gr-osmosdr && \ |
| 32 | cd gr-osmosdr && \ |
| 33 | mkdir build && \ |
| 34 | cd build && \ |
| 35 | cmake .. && \ |
| 36 | make -j $(nproc) install |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 37 | |
| 38 | RUN mkdir /src/build |
| 39 | WORKDIR /src/build |
| 40 | RUN cmake .. && \ |
Vasil Velichkov | 0feb4ab | 2018-02-21 06:12:04 +0200 | [diff] [blame] | 41 | # The parallel build sometimes fails when the .grc_gnuradio |
| 42 | # and .gnuradio directories do not exist |
| 43 | mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \ |
| 44 | make -j $(nproc) && \ |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 45 | make install && \ |
| 46 | ldconfig && \ |
Vasil Velichkov | e153e72 | 2018-06-05 20:01:55 +0300 | [diff] [blame] | 47 | make CTEST_OUTPUT_ON_FAILURE=1 test |