Ash Wilson | 628cf3b | 2016-01-30 14:13:08 -0800 | [diff] [blame] | 1 | FROM ubuntu:14.04 |
| 2 | |
Ash Wilson | 628cf3b | 2016-01-30 14:13:08 -0800 | [diff] [blame] | 3 | ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git |
Ash Wilson | 628cf3b | 2016-01-30 14:13:08 -0800 | [diff] [blame] | 4 | |
| 5 | # We know it's going to foul up, so we run this install separately and then ...fix... dpkg status |
| 6 | RUN apt-get update && apt-get install -y uhd-host || \ |
| 7 | sed -i "s/Status: install ok half-configured/Status: install ok installed/g" /var/lib/dpkg/status |
| 8 | |
| 9 | RUN apt-get update && apt-get install -y \ |
| 10 | git \ |
| 11 | vim \ |
| 12 | gnuradio-dev \ |
| 13 | gr-osmosdr \ |
| 14 | libgnuradio-osmosdr0.0.0 \ |
| 15 | libosmosdr-dev \ |
| 16 | libosmosdr0 \ |
| 17 | osmo-sdr \ |
| 18 | cmake \ |
| 19 | autoconf \ |
| 20 | libtool \ |
| 21 | python-talloc-dev \ |
| 22 | libtalloc2 \ |
| 23 | libtalloc-dev \ |
| 24 | libpcsclite-dev \ |
| 25 | build-essential \ |
| 26 | libboost-all-dev \ |
| 27 | libcppunit-dev swig \ |
| 28 | doxygen \ |
| 29 | liblog4cpp5-dev \ |
| 30 | python-scipy \ |
| 31 | librtlsdr-dev \ |
| 32 | librtlsdr0 \ |
Ash Wilson | 45e4c85 | 2016-01-30 16:12:21 -0800 | [diff] [blame] | 33 | rtl-sdr \ |
Ash Wilson | 686964d | 2016-02-20 10:03:40 -0800 | [diff] [blame] | 34 | wget \ |
| 35 | libxi-dev |
Ash Wilson | 628cf3b | 2016-01-30 14:13:08 -0800 | [diff] [blame] | 36 | |
| 37 | |
| 38 | RUN /usr/bin/git clone $OSMOCORE_GIT && \ |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame^] | 39 | cd libosmocore && \ |
| 40 | autoreconf -i && \ |
| 41 | ./configure && \ |
| 42 | make && \ |
| 43 | make install && \ |
| 44 | ldconfig -i |
Ash Wilson | 628cf3b | 2016-01-30 14:13:08 -0800 | [diff] [blame] | 45 | |
Ash Wilson | 96a56b4 | 2016-01-30 15:13:13 -0800 | [diff] [blame] | 46 | |
Ash Wilson | 45e4c85 | 2016-01-30 16:12:21 -0800 | [diff] [blame] | 47 | COPY ./ /src/ |
Ash Wilson | 45e4c85 | 2016-01-30 16:12:21 -0800 | [diff] [blame] | 48 | RUN mkdir /src/build && \ |
| 49 | cd /src/build && \ |
| 50 | cmake .. && \ |
| 51 | make && \ |
Ash Wilson | 9f6e453 | 2016-02-20 10:21:34 -0800 | [diff] [blame^] | 52 | make test && \ |
Ash Wilson | 45e4c85 | 2016-01-30 16:12:21 -0800 | [diff] [blame] | 53 | make install && \ |
| 54 | ldconfig |