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 | f908045 | 2019-09-11 22:38:08 +0300 | [diff] [blame] | 16 | gnuradio-dev gnuradio libgmp-dev libboost-regex-dev liborc-dev \ |
| 17 | libosmocore-dev \ |
| 18 | gr-osmosdr |
Vasil Velichkov | c00008f | 2019-09-02 18:19:13 +0300 | [diff] [blame] | 19 | |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 20 | COPY ./ /src/ |
Vasil Velichkov | c00008f | 2019-09-02 18:19:13 +0300 | [diff] [blame] | 21 | |
Vasil Velichkov | f908045 | 2019-09-11 22:38:08 +0300 | [diff] [blame] | 22 | RUN mkdir -p /src/build |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 23 | WORKDIR /src/build |
Vasil Velichkov | f908045 | 2019-09-11 22:38:08 +0300 | [diff] [blame] | 24 | |
Vasil Velichkov | 30eb567 | 2019-09-09 18:22:55 +0300 | [diff] [blame] | 25 | RUN PYTHONPATH=/usr/local/lib/python3/dist-packages/:$PYTHONPATH cmake .. && \ |
Vasil Velichkov | 0feb4ab | 2018-02-21 06:12:04 +0200 | [diff] [blame] | 26 | # The parallel build sometimes fails when the .grc_gnuradio |
| 27 | # and .gnuradio directories do not exist |
| 28 | mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \ |
| 29 | make -j $(nproc) && \ |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 30 | make install && \ |
| 31 | ldconfig && \ |
Vasil Velichkov | e153e72 | 2018-06-05 20:01:55 +0300 | [diff] [blame] | 32 | make CTEST_OUTPUT_ON_FAILURE=1 test |