blob: 44d7ca5ecc7389f94a9b347ce3bdb3e2d155bc8b [file] [log] [blame]
Ash Wilson628cf3b2016-01-30 14:13:08 -08001FROM ubuntu:14.04
2
Ash Wilson628cf3b2016-01-30 14:13:08 -08003ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git
Ash Wilson628cf3b2016-01-30 14:13:08 -08004
5# We know it's going to foul up, so we run this install separately and then ...fix... dpkg status
6RUN apt-get update && apt-get install -y uhd-host || \
7 sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status
8
9RUN apt-get update && apt-get install -y \
10 git \
11 vim \
12 gnuradio-dev \
13 gr-osmosdr \
14 libgnuradio-osmosdr0.0.0 \
15 libosmosdr-dev \
16 libosmosdr0 \
17 osmo-sdr \
18 cmake \
19 autoconf \
20 libtool \
21 python-talloc-dev \
22 libtalloc2 \
23 libtalloc-dev \
24 libpcsclite-dev \
25 build-essential \
26 libboost-all-dev \
27 libcppunit-dev swig \
28 doxygen \
29 liblog4cpp5-dev \
30 python-scipy \
31 librtlsdr-dev \
32 librtlsdr0 \
Ash Wilson45e4c852016-01-30 16:12:21 -080033 rtl-sdr \
Ash Wilson686964d2016-02-20 10:03:40 -080034 wget \
35 libxi-dev
Ash Wilson628cf3b2016-01-30 14:13:08 -080036
37
38RUN /usr/bin/git clone $OSMOCORE_GIT && \
Ash Wilson9f6e4532016-02-20 10:21:34 -080039 cd libosmocore && \
40 autoreconf -i && \
41 ./configure && \
42 make && \
43 make install && \
44 ldconfig -i
Ash Wilson628cf3b2016-01-30 14:13:08 -080045
Ash Wilson96a56b42016-01-30 15:13:13 -080046
Ash Wilson45e4c852016-01-30 16:12:21 -080047COPY ./ /src/
Ash Wilson45e4c852016-01-30 16:12:21 -080048RUN mkdir /src/build && \
49 cd /src/build && \
50 cmake .. && \
51 make && \
Ash Wilson9f6e4532016-02-20 10:21:34 -080052 make test && \
Ash Wilson45e4c852016-01-30 16:12:21 -080053 make install && \
54 ldconfig