Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 1 | FROM ubuntu:15.04 |
| 2 | MAINTAINER Ash Wilson |
| 3 | |
| 4 | ENV OSMOSDR_GIT="git://git.osmocom.org/libosmocore.git" |
Piotr Krysik | 533f58a | 2016-04-11 22:20:35 +0200 | [diff] [blame] | 5 | ENV OSMOCORE_TAG=0.6.3 |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 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 | |
| 11 | |
Piotr Krysik | 50a0e95 | 2016-04-29 15:47:45 +0200 | [diff] [blame] | 12 | RUN apt-get update && apt-get install -y \ |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 13 | git \ |
| 14 | python \ |
| 15 | python-scipy \ |
| 16 | cmake \ |
| 17 | make \ |
| 18 | autoconf \ |
| 19 | automake \ |
| 20 | cpp-4.9 \ |
| 21 | gcc \ |
| 22 | g++ \ |
| 23 | libstdc++-4.9-dev \ |
| 24 | libcppunit-dev \ |
| 25 | swig \ |
| 26 | swig2.0 \ |
| 27 | doxygen \ |
| 28 | liblog4cpp5 \ |
| 29 | liblog4cpp5-dev \ |
| 30 | build-essential \ |
| 31 | libtool \ |
| 32 | shtool \ |
| 33 | pkg-config \ |
| 34 | libpcsclite-dev \ |
| 35 | gnuradio \ |
| 36 | gnuradio-dev \ |
| 37 | gr-osmosdr \ |
| 38 | libfftw3-dev \ |
| 39 | libusb-1.0-0-dev \ |
| 40 | libvolk-dev \ |
| 41 | libvolk0.0.0 \ |
| 42 | libboost-all-dev \ |
| 43 | libgnuradio-osmosdr0.1.3 \ |
| 44 | libmirisdr0 \ |
| 45 | libosmosdr-dev \ |
| 46 | libosmosdr0 \ |
| 47 | librtlsdr-dev \ |
| 48 | librtlsdr0 \ |
| 49 | osmo-sdr \ |
| 50 | rtl-sdr \ |
| 51 | wget \ |
| 52 | python-talloc-dev \ |
| 53 | libtalloc2 \ |
| 54 | libtalloc-dev \ |
Ash Wilson | 994c416 | 2016-02-20 23:55:47 -0800 | [diff] [blame] | 55 | unzip |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 56 | |
| 57 | # Build libosmosdr |
Piotr Krysik | 50a0e95 | 2016-04-29 15:47:45 +0200 | [diff] [blame] | 58 | RUN git clone $OSMOSDR_GIT |
| 59 | WORKDIR libosmocore |
| 60 | RUN git checkout tags/$OSMOCORE_TAG && \ |
Ash Wilson | ca8f035 | 2016-02-21 09:35:13 -0800 | [diff] [blame] | 61 | autoreconf -i && \ |
| 62 | ./configure && \ |
| 63 | make && \ |
| 64 | make install && \ |
| 65 | ldconfig -i |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 66 | |
| 67 | COPY ./ /src/ |
Ash Wilson | 994c416 | 2016-02-20 23:55:47 -0800 | [diff] [blame] | 68 | |
Ash Wilson | 17eb6d6 | 2016-02-21 00:23:57 -0800 | [diff] [blame] | 69 | RUN mkdir /root/.gnuradio/ |
Ash Wilson | 994c416 | 2016-02-20 23:55:47 -0800 | [diff] [blame] | 70 | RUN echo "[grc]\nlocal_blocks_path=/usr/local/share/gnuradio/grc/blocks" > \ |
| 71 | /root/.gnuradio/config.conf |
| 72 | |
Piotr Krysik | 50a0e95 | 2016-04-29 15:47:45 +0200 | [diff] [blame] | 73 | RUN mkdir /src/build |
| 74 | WORKDIR /src/build |
| 75 | RUN cmake .. && \ |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 76 | make && \ |
Piotr Krysik | 50a0e95 | 2016-04-29 15:47:45 +0200 | [diff] [blame] | 77 | make test && \ |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 78 | make install && \ |
| 79 | ldconfig |