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