aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dockerfiles
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2016-04-11 22:20:35 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2016-04-11 22:20:35 +0200
commit533f58ad8327f967267e5b23d24dc316218681f1 (patch)
treede3faa817b5cc66a494465851b55b7524d07d6ff /tests/dockerfiles
parent92b404d7e919d087dd25c972ed02ac7676666004 (diff)
Changed arrangment of directories and names of files for testing
Diffstat (limited to 'tests/dockerfiles')
-rw-r--r--tests/dockerfiles/DebianJessie.docker52
-rw-r--r--tests/dockerfiles/Ubuntu_15_04.docker79
2 files changed, 131 insertions, 0 deletions
diff --git a/tests/dockerfiles/DebianJessie.docker b/tests/dockerfiles/DebianJessie.docker
new file mode 100644
index 0000000..538f105
--- /dev/null
+++ b/tests/dockerfiles/DebianJessie.docker
@@ -0,0 +1,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
diff --git a/tests/dockerfiles/Ubuntu_15_04.docker b/tests/dockerfiles/Ubuntu_15_04.docker
new file mode 100644
index 0000000..74304bd
--- /dev/null
+++ b/tests/dockerfiles/Ubuntu_15_04.docker
@@ -0,0 +1,79 @@
+FROM ubuntu:15.04
+MAINTAINER Ash Wilson
+
+ENV OSMOSDR_GIT="git://git.osmocom.org/libosmocore.git"
+ENV OSMOCORE_TAG=0.6.3
+
+# 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 install -y \
+ git \
+ python \
+ python-scipy \
+ cmake \
+ make \
+ autoconf \
+ automake \
+ cpp-4.9 \
+ gcc \
+ g++ \
+ libstdc++-4.9-dev \
+ libcppunit-dev \
+ swig \
+ swig2.0 \
+ doxygen \
+ liblog4cpp5 \
+ liblog4cpp5-dev \
+ build-essential \
+ libtool \
+ shtool \
+ pkg-config \
+ libpcsclite-dev \
+ gnuradio \
+ gnuradio-dev \
+ gr-osmosdr \
+ libfftw3-dev \
+ libusb-1.0-0-dev \
+ libvolk-dev \
+ libvolk0.0.0 \
+ libboost-all-dev \
+ libgnuradio-osmosdr0.1.3 \
+ libmirisdr0 \
+ libosmosdr-dev \
+ libosmosdr0 \
+ librtlsdr-dev \
+ librtlsdr0 \
+ osmo-sdr \
+ rtl-sdr \
+ wget \
+ python-talloc-dev \
+ libtalloc2 \
+ libtalloc-dev \
+ unzip
+
+# Build libosmosdr
+ RUN git clone $OSMOSDR_GIT && \
+ cd libosmocore && \
+ git checkout tags/$OSMOCORE_TAG && \
+ autoreconf -i && \
+ ./configure && \
+ make && \
+ make install && \
+ ldconfig -i
+
+COPY ./ /src/
+
+RUN mkdir /root/.gnuradio/
+RUN echo "[grc]\nlocal_blocks_path=/usr/local/share/gnuradio/grc/blocks" > \
+ /root/.gnuradio/config.conf
+
+RUN mkdir /src/build && \
+ cd /src/build && \
+ cmake .. && \
+ make && \
+ # make test && \
+ make install && \
+ ldconfig