blob: 538f105e2175df2ce6cf48d34027de0960165f58 [file] [log] [blame]
Piotr Krysikdbb69be2016-04-14 09:02:52 +02001FROM ashmastaflash/gradio37_debjessie
2
3ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git
4ENV OSMOCORE_TAG=0.6.3
5ENV GR_OSMOSDR_GIT=git://git.osmocom.org/gr-osmosdr
Piotr Krysik1d425442016-04-13 12:26:41 +02006
7# We know it's going to foul up, so we run this install separately and then ...fix... dpkg status
Piotr Krysikdbb69be2016-04-14 09:02:52 +02008#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
Piotr Krysik1d425442016-04-13 12:26:41 +020010
Piotr Krysikdbb69be2016-04-14 09:02:52 +020011RUN apt-get update && apt-get install -y \
Piotr Krysik1d425442016-04-13 12:26:41 +020012 git \
13 vim \
14 cmake \
15 autoconf \
16 libtool \
Piotr Krysikdbb69be2016-04-14 09:02:52 +020017 python-talloc-dev \
18 libtalloc2 \
19 libtalloc-dev \
20 libpcsclite-dev \
Piotr Krysik1d425442016-04-13 12:26:41 +020021 build-essential \
22 libboost-all-dev \
23 libcppunit-dev swig \
24 doxygen \
25 liblog4cpp5-dev \
26 python-scipy \
Piotr Krysikdbb69be2016-04-14 09:02:52 +020027 librtlsdr-dev \
28 librtlsdr0 \
29 rtl-sdr \
30 wget \
31 libxi-dev
32
33
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
Piotr Krysik1d425442016-04-13 12:26:41 +020042
43COPY ./ /src/
44RUN ls /src
45
46RUN mkdir /src/build && \
47 cd /src/build && \
48 cmake .. && \
49 make && \
Piotr Krysikdbb69be2016-04-14 09:02:52 +020050 # make test && \
Piotr Krysik1d425442016-04-13 12:26:41 +020051 make install && \
52 ldconfig