blob: 836e4c5364de0468a32fdc75ce939b5f3a1007cf [file] [log] [blame]
Ash Wilson628cf3b2016-01-30 14:13:08 -08001FROM ubuntu:14.04
2
3ENV GRGSM_GIT=https://github.com/ptrkrysik/gr-gsm
4ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git
5ENV GR_OSMOSDR_GIT=git://git.osmocom.org/gr-osmosdr
6
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
11RUN apt-get update && apt-get install -y \
12 git \
13 vim \
14 gnuradio-dev \
15 gr-osmosdr \
16 libgnuradio-osmosdr0.0.0 \
17 libosmosdr-dev \
18 libosmosdr0 \
19 osmo-sdr \
20 cmake \
21 autoconf \
22 libtool \
23 python-talloc-dev \
24 libtalloc2 \
25 libtalloc-dev \
26 libpcsclite-dev \
27 build-essential \
28 libboost-all-dev \
29 libcppunit-dev swig \
30 doxygen \
31 liblog4cpp5-dev \
32 python-scipy \
33 librtlsdr-dev \
34 librtlsdr0 \
Ash Wilson45e4c852016-01-30 16:12:21 -080035 rtl-sdr \
36 wget
Ash Wilson628cf3b2016-01-30 14:13:08 -080037
38
39RUN /usr/bin/git clone $OSMOCORE_GIT && \
40 cd libosmocore && \
41 autoreconf -i && \
42 ./configure && \
43 make && \
44 make install && \
45 ldconfig -i
46
47#RUN /usr/bin/git clone $GR_OSMOSDR_GIT && \
48# cd gr-osmosdr && \
49# mkdir build && \
50# cd build && \
51# cmake .. && \
52# make && \
53# make install && \
54# ldconfig
55
Ash Wilson45e4c852016-01-30 16:12:21 -080056#RUN /usr/bin/git clone $GRGSM_GIT && \
57# cd gr-gsm && \
58# mkdir build && \
59# cd build && \
60# cmake .. && \
61# make && \
62# sudo make install &&\
63# ldconfig
Ash Wilson96a56b42016-01-30 15:13:13 -080064
Ash Wilson45e4c852016-01-30 16:12:21 -080065COPY ./ /src/
66RUN ls /src
67RUN mkdir /src/build && \
68 cd /src/build && \
69 cmake .. && \
70 make && \
71 make install && \
72 ldconfig