blob: 9eb44f286fcb9f2a37f26caa12fe9bac7c4c3c73 [file] [log] [blame]
FROM ubuntu:14.10
ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git
ENV OSMOCORE_TAG=0.6.3
# Fix repos in docker image:
RUN sed -i "s/archive.ubuntu.com/old-releases.ubuntu.com/g" /etc/apt/sources.list
# 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 \
gnuradio-dev \
gr-osmosdr \
libgnuradio-osmosdr0.1.1.4 \
libosmosdr-dev \
libosmosdr0 \
osmo-sdr \
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 mkdir /src/build && \
cd /src/build && \
cmake .. && \
make && \
# make test && \
make install && \
ldconfig