Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 1 | FROM kalilinux/kali-linux-docker |
| 2 | MAINTAINER Piotr Krysik |
| 3 | |
| 4 | RUN apt-get update && apt-get install -y \ |
| 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 \ |
| 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 | |
| 20 | COPY ./ /src/ |
| 21 | RUN ls /src |
| 22 | |
| 23 | RUN mkdir /src/build |
| 24 | WORKDIR /src/build |
| 25 | RUN 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/ && \ |
Vasil Velichkov | 084b14e | 2018-04-09 13:00:55 +0300 | [diff] [blame] | 29 | # 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 Velichkov | 0feb4ab | 2018-02-21 06:12:04 +0200 | [diff] [blame] | 32 | make -j $(nproc) && \ |
Piotr Krysik | 5ccedad | 2018-02-20 12:58:45 +0100 | [diff] [blame] | 33 | make install && \ |
| 34 | ldconfig && \ |
| 35 | make test |