blob: 8a9f84be75f1e856158c3d4e6c3d438293953e60 [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 \
Piotr Krysik92e40322021-05-03 11:30:29 +020016 gnuradio-dev \
17 liborc-dev \
Vasil Velichkovf9080452019-09-11 22:38:08 +030018 libosmocore-dev \
19 gr-osmosdr
Vasil Velichkovc00008f2019-09-02 18:19:13 +030020
Piotr Krysik1d425442016-04-13 12:26:41 +020021COPY ./ /src/
Piotr Krysik92e40322021-05-03 11:30:29 +020022RUN mkdir /src/build
Piotr Krysik50a0e952016-04-29 15:47:45 +020023WORKDIR /src/build
Vasil Velichkovc00008f2019-09-02 18:19:13 +030024
Piotr Krysik92e40322021-05-03 11:30:29 +020025RUN cmake .. && \
Vasil Velichkov0feb4ab2018-02-21 06:12:04 +020026 # 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 Krysik1d425442016-04-13 12:26:41 +020030 make install && \
Piotr Krysik398fd8b2018-02-20 13:00:31 +010031 ldconfig && \
Vasil Velichkove153e722018-06-05 20:01:55 +030032 make CTEST_OUTPUT_ON_FAILURE=1 test