blob: 6cb03d40d8ea742d616ab6f743db616713bad0f0 [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 \
54 unzip
55
56# Build libosmosdr
57RUN git clone $OSMOSDR_GIT && \
58 cd libosmocore && \
59 autoreconf -i && \
60 ./configure && \
61 make && \
62 make install && \
63 ldconfig -i
64
65COPY ./ /src/
66RUN mkdir /src/build && \
67 cd /src/build && \
68 cmake .. && \
69 make && \
70 make test && \
71 make install && \
72 ldconfig
73