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