blob: 6dd688fca6d12707a9bdd4f622b007152555e6a6 [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 \
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 \
15 python-scipy \
16 gnuradio-dev \
17 gr-osmosdr \
18 libosmocore-dev
19
20COPY ./ /src/
21RUN ls /src
22
Piotr Krysik50a0e952016-04-29 15:47:45 +020023RUN mkdir /src/build
24WORKDIR /src/build
25RUN 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/ && \
Vasil Velichkov084b14e2018-04-09 13:00:55 +030029 # 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 Velichkov0feb4ab2018-02-21 06:12:04 +020032 make -j $(nproc) && \
Piotr Krysik1d425442016-04-13 12:26:41 +020033 make install && \
Piotr Krysik398fd8b2018-02-20 13:00:31 +010034 ldconfig && \
35 make test