blob: 538f105e2175df2ce6cf48d34027de0960165f58 [file] [log] [blame]
Ash Wilsonad10aa92016-02-14 16:59:42 -08001FROM ashmastaflash/gradio37_debjessie
2
Ash Wilsonad10aa92016-02-14 16:59:42 -08003ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git
Ash Wilson86ab8bd2016-02-21 09:48:55 -08004ENV OSMOCORE_TAG=0.6.3
Ash Wilsonad10aa92016-02-14 16:59:42 -08005ENV 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
8#RUN 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 cmake \
15 autoconf \
16 libtool \
17 python-talloc-dev \
18 libtalloc2 \
19 libtalloc-dev \
20 libpcsclite-dev \
21 build-essential \
22 libboost-all-dev \
23 libcppunit-dev swig \
24 doxygen \
25 liblog4cpp5-dev \
26 python-scipy \
27 librtlsdr-dev \
28 librtlsdr0 \
29 rtl-sdr \
30 wget \
31 libxi-dev
32
Ash Wilson86ab8bd2016-02-21 09:48:55 -080033
34RUN /usr/bin/git clone $OSMOCORE_GIT && \
35 cd libosmocore && \
36 git checkout tags/$OSMOCORE_TAG && \
37 autoreconf -i && \
38 ./configure && \
39 make && \
40 make install && \
41 ldconfig -i
42
Ash Wilsonad10aa92016-02-14 16:59:42 -080043COPY ./ /src/
44RUN ls /src
Ash Wilson86ab8bd2016-02-21 09:48:55 -080045
Ash Wilsonad10aa92016-02-14 16:59:42 -080046RUN mkdir /src/build && \
47 cd /src/build && \
48 cmake .. && \
49 make && \
Ash Wilson984cf052016-03-02 00:26:01 -080050 # make test && \
Ash Wilsonad10aa92016-02-14 16:59:42 -080051 make install && \
52 ldconfig