blob: e81d29978751e42c16dc99a1466accd3fc537d31 [file] [log] [blame]
Piotr Krysik1d425442016-04-13 12:26:41 +02001FROM debian:testing
Piotr Krysikd24a4942018-02-20 12:58:08 +01002MAINTAINER Piotr Krysik
Piotr Krysik1d425442016-04-13 12:26:41 +02003
Vasil Velichkov8c4eefb2018-04-24 23:27:40 +03004RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
Piotr Krysik1d425442016-04-13 12:26:41 +02005 cmake \
6 autoconf \
7 libtool \
Vasil Velichkov3f6ab152018-02-21 05:57:31 +02008 pkg-config \
Piotr Krysik1d425442016-04-13 12:26:41 +02009 build-essential \
10 libcppunit-dev \
11 swig \
12 doxygen \
13 liblog4cpp5-dev \
Vasil Velichkovfc99ad42019-09-02 06:49:09 +030014 python3-docutils \
15 python3-scipy \
Vasil Velichkov333027f2019-08-29 00:17:10 +030016 gnuradio-dev gnuradio libgmp-dev libboost-regex-dev \
Piotr Krysik1d425442016-04-13 12:26:41 +020017 libosmocore-dev
18
Vasil Velichkovc00008f2019-09-02 18:19:13 +030019# packages needed for gr-iqbal and gr-osmosdr
20RUN apt-get install -y git libuhd-dev
21
Piotr Krysik1d425442016-04-13 12:26:41 +020022COPY ./ /src/
Vasil Velichkovc00008f2019-09-02 18:19:13 +030023
24RUN 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
31RUN 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 Krysik1d425442016-04-13 12:26:41 +020037
Piotr Krysik50a0e952016-04-29 15:47:45 +020038RUN mkdir /src/build
39WORKDIR /src/build
Vasil Velichkovc00008f2019-09-02 18:19:13 +030040
Piotr Krysik50a0e952016-04-29 15:47:45 +020041RUN cmake .. && \
Vasil Velichkov0feb4ab2018-02-21 06:12:04 +020042 # The parallel build sometimes fails when the .grc_gnuradio
43 # and .gnuradio directories do not exist
44 mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \
45 make -j $(nproc) && \
Piotr Krysik1d425442016-04-13 12:26:41 +020046 make install && \
Piotr Krysik398fd8b2018-02-20 13:00:31 +010047 ldconfig && \
Vasil Velichkove153e722018-06-05 20:01:55 +030048 make CTEST_OUTPUT_ON_FAILURE=1 test