blob: 291af6155cbc7bc93aad3b6d7ad08848a20dc495 [file] [log] [blame]
Ash Wilson9f6e4532016-02-20 10:21:34 -08001FROM ubuntu:15.04
2MAINTAINER Ash Wilson
3
4ENV OSMOSDR_GIT="git://git.osmocom.org/libosmocore.git"
5
6# We know it's going to foul up, so we run this install separately and then ...fix... dpkg status
7RUN apt-get update && apt-get install -y uhd-host || \
8 sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status
9
10
11RUN apt-get update && apt-get install -y \
12 git \
13 python \
14 python-scipy \
15 cmake \
16 make \
17 autoconf \
18 automake \
19 cpp-4.9 \
20 gcc \
21 g++ \
22 libstdc++-4.9-dev \
23 libcppunit-dev \
24 swig \
25 swig2.0 \
26 doxygen \
27 liblog4cpp5 \
28 liblog4cpp5-dev \
29 build-essential \
30 libtool \
31 shtool \
32 pkg-config \
33 libpcsclite-dev \
34 gnuradio \
35 gnuradio-dev \
36 gr-osmosdr \
37 libfftw3-dev \
38 libusb-1.0-0-dev \
39 libvolk-dev \
40 libvolk0.0.0 \
41 libboost-all-dev \
42 libgnuradio-osmosdr0.1.3 \
43 libmirisdr0 \
44 libosmosdr-dev \
45 libosmosdr0 \
46 librtlsdr-dev \
47 librtlsdr0 \
48 osmo-sdr \
49 rtl-sdr \
50 wget \
51 python-talloc-dev \
52 libtalloc2 \
53 libtalloc-dev \
Ash Wilson994c4162016-02-20 23:55:47 -080054 unzip
Ash Wilson9f6e4532016-02-20 10:21:34 -080055
56# Build libosmosdr
57RUN git clone $OSMOSDR_GIT && \
58 cd libosmocore && \
59 autoreconf -i && \
60 ./configure && \
61 make && \
62 make install && \
Ash Wilson994c4162016-02-20 23:55:47 -080063 ldconfig -i
Ash Wilson9f6e4532016-02-20 10:21:34 -080064
65COPY ./ /src/
Ash Wilson994c4162016-02-20 23:55:47 -080066
Ash Wilson17eb6d62016-02-21 00:23:57 -080067RUN mkdir /root/.gnuradio/
Ash Wilson994c4162016-02-20 23:55:47 -080068RUN echo "[grc]\nlocal_blocks_path=/usr/local/share/gnuradio/grc/blocks" > \
69 /root/.gnuradio/config.conf
70
Ash Wilson9f6e4532016-02-20 10:21:34 -080071RUN mkdir /src/build && \
72 cd /src/build && \
73 cmake .. && \
74 make && \
75 make test && \
76 make install && \
77 ldconfig