blob: 67c3b1df283644cdf1298804e928a0afffc0bf32 [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 Wilson628cf3b2016-01-30 14:13:08 -08004
Ash Wilson0acdd752016-02-21 08:48:20 -08005# Fix repos in docker image:
6RUN sed -i "s/archive.ubuntu.com/old-releases.ubuntu.com/g" /etc/apt/sources.list
7
Ash Wilson628cf3b2016-01-30 14:13:08 -08008# We know it's going to foul up, so we run this install separately and then ...fix... dpkg status
9RUN apt-get update && apt-get install -y uhd-host || \
10 sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status
11
12RUN apt-get update && apt-get install -y \
13 git \
14 vim \
15 gnuradio-dev \
16 gr-osmosdr \
Ash Wilson0acdd752016-02-21 08:48:20 -080017 libgnuradio-osmosdr0.1.1.4 \
Ash Wilson628cf3b2016-01-30 14:13:08 -080018 libosmosdr-dev \
19 libosmosdr0 \
20 osmo-sdr \
21 cmake \
22 autoconf \
23 libtool \
24 python-talloc-dev \
25 libtalloc2 \
26 libtalloc-dev \
27 libpcsclite-dev \
28 build-essential \
29 libboost-all-dev \
30 libcppunit-dev swig \
31 doxygen \
32 liblog4cpp5-dev \
33 python-scipy \
34 librtlsdr-dev \
35 librtlsdr0 \
Ash Wilson45e4c852016-01-30 16:12:21 -080036 rtl-sdr \
Ash Wilson686964d2016-02-20 10:03:40 -080037 wget \
38 libxi-dev
Ash Wilson628cf3b2016-01-30 14:13:08 -080039
40
Ash Wilson0acdd752016-02-21 08:48:20 -080041#RUN /usr/bin/git clone $OSMOCORE_GIT && \
42# cd libosmocore && \
43# autoreconf -i && \
44# ./configure && \
45# make && \
46# make install && \
47# ldconfig -i
Ash Wilson628cf3b2016-01-30 14:13:08 -080048
Ash Wilson96a56b42016-01-30 15:13:13 -080049
Ash Wilson45e4c852016-01-30 16:12:21 -080050COPY ./ /src/
Ash Wilson45e4c852016-01-30 16:12:21 -080051RUN mkdir /src/build && \
52 cd /src/build && \
53 cmake .. && \
54 make && \
Ash Wilson9f6e4532016-02-20 10:21:34 -080055 make test && \
Ash Wilson45e4c852016-01-30 16:12:21 -080056 make install && \
57 ldconfig