blob: 9eb44f286fcb9f2a37f26caa12fe9bac7c4c3c73 [file] [log] [blame]
Ash Wilsonbf799ed2016-02-21 08:32:10 -08001FROM ubuntu:14.10
Ash Wilson628cf3b2016-01-30 14:13:08 -08002
Ash Wilson628cf3b2016-01-30 14:13:08 -08003ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git
Ash Wilson86ab8bd2016-02-21 09:48:55 -08004ENV OSMOCORE_TAG=0.6.3
Ash Wilson628cf3b2016-01-30 14:13:08 -08005
Ash Wilson0acdd752016-02-21 08:48:20 -08006# Fix repos in docker image:
7RUN sed -i "s/archive.ubuntu.com/old-releases.ubuntu.com/g" /etc/apt/sources.list
8
Ash Wilson628cf3b2016-01-30 14:13:08 -08009# We know it's going to foul up, so we run this install separately and then ...fix... dpkg status
10RUN apt-get update && apt-get install -y uhd-host || \
11 sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status
12
13RUN apt-get update && apt-get install -y \
14 git \
15 vim \
16 gnuradio-dev \
17 gr-osmosdr \
Ash Wilson0acdd752016-02-21 08:48:20 -080018 libgnuradio-osmosdr0.1.1.4 \
Ash Wilson628cf3b2016-01-30 14:13:08 -080019 libosmosdr-dev \
20 libosmosdr0 \
21 osmo-sdr \
22 cmake \
23 autoconf \
24 libtool \
25 python-talloc-dev \
26 libtalloc2 \
27 libtalloc-dev \
28 libpcsclite-dev \
29 build-essential \
30 libboost-all-dev \
31 libcppunit-dev swig \
32 doxygen \
33 liblog4cpp5-dev \
34 python-scipy \
35 librtlsdr-dev \
36 librtlsdr0 \
Ash Wilson45e4c852016-01-30 16:12:21 -080037 rtl-sdr \
Ash Wilson686964d2016-02-20 10:03:40 -080038 wget \
39 libxi-dev
Ash Wilson628cf3b2016-01-30 14:13:08 -080040
41
Ash Wilsonca8f0352016-02-21 09:35:13 -080042RUN /usr/bin/git clone $OSMOCORE_GIT && \
43 cd libosmocore && \
44 git checkout tags/$OSMOCORE_TAG && \
45 autoreconf -i && \
46 ./configure && \
47 make && \
48 make install && \
49 ldconfig -i
Ash Wilson628cf3b2016-01-30 14:13:08 -080050
Ash Wilson96a56b42016-01-30 15:13:13 -080051
Ash Wilson45e4c852016-01-30 16:12:21 -080052COPY ./ /src/
Ash Wilson45e4c852016-01-30 16:12:21 -080053RUN mkdir /src/build && \
54 cd /src/build && \
55 cmake .. && \
56 make && \
Ash Wilsoncef8c092016-02-21 10:32:12 -080057 # make test && \
Ash Wilson45e4c852016-01-30 16:12:21 -080058 make install && \
59 ldconfig