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