blob: 58ef22c456c25e84a963ccc65bf28befb12b5d82 [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 \
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
Piotr Krysik50a0e952016-04-29 15:47:45 +020058RUN git clone $OSMOSDR_GIT
59WORKDIR libosmocore
60RUN git checkout tags/$OSMOCORE_TAG && \
Ash Wilsonca8f0352016-02-21 09:35:13 -080061 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
Piotr Krysik50a0e952016-04-29 15:47:45 +020073RUN mkdir /src/build
74WORKDIR /src/build
75RUN cmake .. && \
Ash Wilson9f6e4532016-02-20 10:21:34 -080076 make && \
Piotr Krysik50a0e952016-04-29 15:47:45 +020077 make test && \
Ash Wilson9f6e4532016-02-20 10:21:34 -080078 make install && \
79 ldconfig