blob: a3d16ba1880e12704519150a96ba651c82bcb5e6 [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 Velichkovb4a0acf2018-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 \
Petter Reinholdtsencf5718c2017-09-20 21:52:31 +020010 python-docutils \
Piotr Krysik1d425442016-04-13 12:26:41 +020011 libcppunit-dev \
12 swig \
13 doxygen \
14 liblog4cpp5-dev \
Piotr Krysikf0f71832018-07-28 12:44:23 +020015 python-gtk2 \
Piotr Krysik1d425442016-04-13 12:26:41 +020016 python-scipy \
17 gnuradio-dev \
18 gr-osmosdr \
19 libosmocore-dev
20
21COPY ./ /src/
22RUN ls /src
23
Piotr Krysik50a0e952016-04-29 15:47:45 +020024RUN mkdir /src/build
25WORKDIR /src/build
26RUN cmake .. && \
Vasil Velichkov0feb4ab2018-02-21 06:12:04 +020027 # The parallel build sometimes fails when the .grc_gnuradio
28 # and .gnuradio directories do not exist
29 mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \
30 make -j $(nproc) && \
Piotr Krysik1d425442016-04-13 12:26:41 +020031 make install && \
Piotr Krysik398fd8b2018-02-20 13:00:31 +010032 ldconfig && \
Vasil Velichkovf9f7cbd2018-06-05 20:01:55 +030033 make CTEST_OUTPUT_ON_FAILURE=1 test