blob: f3a49dfa5e9ce75a688882a2b7666f5b47b17af7 [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"
Ash Wilsoncd61a152016-03-06 09:31:10 -08005#ENV OSMOCORE_TAG=0.6.3
6ENV OSMOCORE_TAG=0.6.6
Ash Wilson9f6e4532016-02-20 10:21:34 -08007
8# We know it's going to foul up, so we run this install separately and then ...fix... dpkg status
9RUN apt-get update && apt-get install -y uhd-host || \
10 sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status
11
12
13RUN apt-get update && apt-get install -y \
14 git \
15 python \
16 python-scipy \
17 cmake \
18 make \
19 autoconf \
20 automake \
21 cpp-4.9 \
22 gcc \
23 g++ \
24 libstdc++-4.9-dev \
25 libcppunit-dev \
26 swig \
27 swig2.0 \
28 doxygen \
29 liblog4cpp5 \
30 liblog4cpp5-dev \
31 build-essential \
32 libtool \
33 shtool \
34 pkg-config \
35 libpcsclite-dev \
36 gnuradio \
37 gnuradio-dev \
38 gr-osmosdr \
39 libfftw3-dev \
40 libusb-1.0-0-dev \
41 libvolk-dev \
42 libvolk0.0.0 \
43 libboost-all-dev \
44 libgnuradio-osmosdr0.1.3 \
45 libmirisdr0 \
46 libosmosdr-dev \
47 libosmosdr0 \
48 librtlsdr-dev \
49 librtlsdr0 \
50 osmo-sdr \
51 rtl-sdr \
52 wget \
53 python-talloc-dev \
54 libtalloc2 \
55 libtalloc-dev \
Ash Wilson994c4162016-02-20 23:55:47 -080056 unzip
Ash Wilson9f6e4532016-02-20 10:21:34 -080057
58# Build libosmosdr
Ash Wilsonca8f0352016-02-21 09:35:13 -080059 RUN git clone $OSMOSDR_GIT && \
60 cd libosmocore && \
61 git checkout tags/$OSMOCORE_TAG && \
62 autoreconf -i && \
63 ./configure && \
64 make && \
65 make install && \
66 ldconfig -i
Ash Wilson9f6e4532016-02-20 10:21:34 -080067
68COPY ./ /src/
Ash Wilson994c4162016-02-20 23:55:47 -080069
Ash Wilson17eb6d62016-02-21 00:23:57 -080070RUN mkdir /root/.gnuradio/
Ash Wilson994c4162016-02-20 23:55:47 -080071RUN echo "[grc]\nlocal_blocks_path=/usr/local/share/gnuradio/grc/blocks" > \
72 /root/.gnuradio/config.conf
73
Ash Wilson9f6e4532016-02-20 10:21:34 -080074RUN mkdir /src/build && \
75 cd /src/build && \
76 cmake .. && \
77 make && \
Ash Wilsoncef8c092016-02-21 10:32:12 -080078 # make test && \
Ash Wilson9f6e4532016-02-20 10:21:34 -080079 make install && \
80 ldconfig