aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dockerfiles/DebianJessie.docker
blob: 538f105e2175df2ce6cf48d34027de0960165f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ashmastaflash/gradio37_debjessie

ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git
ENV OSMOCORE_TAG=0.6.3
ENV GR_OSMOSDR_GIT=git://git.osmocom.org/gr-osmosdr

# We know it's going to foul up, so we run this install separately and then ...fix... dpkg status
#RUN apt-get update && apt-get install -y uhd-host || \
#     sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status

RUN apt-get update && apt-get install -y \
    git \
    vim \
    cmake \
    autoconf \
    libtool \
    python-talloc-dev \
    libtalloc2 \
    libtalloc-dev \
    libpcsclite-dev \
    build-essential \
    libboost-all-dev \
    libcppunit-dev swig \
    doxygen \
    liblog4cpp5-dev \
    python-scipy \
    librtlsdr-dev \
    librtlsdr0 \
    rtl-sdr \
    wget \
    libxi-dev


RUN /usr/bin/git clone $OSMOCORE_GIT && \
    cd libosmocore && \
    git checkout tags/$OSMOCORE_TAG && \
    autoreconf -i && \
    ./configure && \
    make && \
    make install && \
    ldconfig -i

COPY ./ /src/
RUN ls /src

RUN mkdir /src/build && \
    cd /src/build && \
    cmake .. && \
    make && \
    # make test && \
    make install && \
    ldconfig