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" |
| 5 | |
| 6 | # We know it's going to foul up, so we run this install separately and then ...fix... dpkg status |
| 7 | RUN apt-get update && apt-get install -y uhd-host || \ |
| 8 | sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status |
| 9 | |
| 10 | |
| 11 | RUN apt-get update && apt-get install -y \ |
| 12 | git \ |
| 13 | python \ |
| 14 | python-scipy \ |
| 15 | cmake \ |
| 16 | make \ |
| 17 | autoconf \ |
| 18 | automake \ |
| 19 | cpp-4.9 \ |
| 20 | gcc \ |
| 21 | g++ \ |
| 22 | libstdc++-4.9-dev \ |
| 23 | libcppunit-dev \ |
| 24 | swig \ |
| 25 | swig2.0 \ |
| 26 | doxygen \ |
| 27 | liblog4cpp5 \ |
| 28 | liblog4cpp5-dev \ |
| 29 | build-essential \ |
| 30 | libtool \ |
| 31 | shtool \ |
| 32 | pkg-config \ |
| 33 | libpcsclite-dev \ |
| 34 | gnuradio \ |
| 35 | gnuradio-dev \ |
| 36 | gr-osmosdr \ |
| 37 | libfftw3-dev \ |
| 38 | libusb-1.0-0-dev \ |
| 39 | libvolk-dev \ |
| 40 | libvolk0.0.0 \ |
| 41 | libboost-all-dev \ |
| 42 | libgnuradio-osmosdr0.1.3 \ |
| 43 | libmirisdr0 \ |
| 44 | libosmosdr-dev \ |
| 45 | libosmosdr0 \ |
| 46 | librtlsdr-dev \ |
| 47 | librtlsdr0 \ |
| 48 | osmo-sdr \ |
| 49 | rtl-sdr \ |
| 50 | wget \ |
| 51 | python-talloc-dev \ |
| 52 | libtalloc2 \ |
| 53 | libtalloc-dev \ |
Ash Wilson | 994c416 | 2016-02-20 23:55:47 -0800 | [diff] [blame] | 54 | unzip |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 55 | |
| 56 | # Build libosmosdr |
| 57 | RUN git clone $OSMOSDR_GIT && \ |
| 58 | cd libosmocore && \ |
| 59 | autoreconf -i && \ |
| 60 | ./configure && \ |
| 61 | make && \ |
| 62 | make install && \ |
Ash Wilson | 994c416 | 2016-02-20 23:55:47 -0800 | [diff] [blame] | 63 | ldconfig -i |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 64 | |
| 65 | COPY ./ /src/ |
Ash Wilson | 994c416 | 2016-02-20 23:55:47 -0800 | [diff] [blame] | 66 | |
Ash Wilson | 17eb6d6 | 2016-02-21 00:23:57 -0800 | [diff] [blame] | 67 | RUN mkdir /root/.gnuradio/ |
Ash Wilson | 994c416 | 2016-02-20 23:55:47 -0800 | [diff] [blame] | 68 | RUN echo "[grc]\nlocal_blocks_path=/usr/local/share/gnuradio/grc/blocks" > \ |
| 69 | /root/.gnuradio/config.conf |
| 70 | |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame] | 71 | RUN mkdir /src/build && \ |
| 72 | cd /src/build && \ |
| 73 | cmake .. && \ |
| 74 | make && \ |
| 75 | make test && \ |
| 76 | make install && \ |
| 77 | ldconfig |