blob: 973b624374db4c729e0e5267bac97654dca36225 [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 Krysik50a0e952016-04-29 15:47:45 +020012RUN apt-get update && 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 \
Petter Reinholdtsencf5718c2017-09-20 21:52:31 +020031 python-docutils \
Ash Wilson9f6e4532016-02-20 10:21:34 -080032 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
Piotr Krysik50a0e952016-04-29 15:47:45 +020059RUN git clone $OSMOSDR_GIT
60WORKDIR libosmocore
61RUN git checkout tags/$OSMOCORE_TAG && \
Ash Wilsonca8f0352016-02-21 09:35:13 -080062 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
Piotr Krysik50a0e952016-04-29 15:47:45 +020074RUN mkdir /src/build
75WORKDIR /src/build
76RUN cmake .. && \
Ash Wilson9f6e4532016-02-20 10:21:34 -080077 make && \
Piotr Krysik50a0e952016-04-29 15:47:45 +020078 make test && \
Ash Wilson9f6e4532016-02-20 10:21:34 -080079 make install && \
80 ldconfig