Ash Wilson | ad10aa9 | 2016-02-14 16:59:42 -0800 | [diff] [blame] | 1 | FROM ashmastaflash/gradio37_debjessie |
| 2 | |
Ash Wilson | ad10aa9 | 2016-02-14 16:59:42 -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 | ad10aa9 | 2016-02-14 16:59:42 -0800 | [diff] [blame] | 5 | ENV GR_OSMOSDR_GIT=git://git.osmocom.org/gr-osmosdr |
| 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 | RUN apt-get update && apt-get install -y \ |
| 12 | git \ |
| 13 | vim \ |
| 14 | cmake \ |
| 15 | autoconf \ |
| 16 | libtool \ |
| 17 | python-talloc-dev \ |
| 18 | libtalloc2 \ |
| 19 | libtalloc-dev \ |
| 20 | libpcsclite-dev \ |
| 21 | build-essential \ |
| 22 | libboost-all-dev \ |
| 23 | libcppunit-dev swig \ |
| 24 | doxygen \ |
| 25 | liblog4cpp5-dev \ |
| 26 | python-scipy \ |
| 27 | librtlsdr-dev \ |
| 28 | librtlsdr0 \ |
| 29 | rtl-sdr \ |
| 30 | wget \ |
| 31 | libxi-dev |
| 32 | |
Ash Wilson | 86ab8bd | 2016-02-21 09:48:55 -0800 | [diff] [blame] | 33 | |
| 34 | RUN /usr/bin/git clone $OSMOCORE_GIT && \ |
| 35 | cd libosmocore && \ |
| 36 | git checkout tags/$OSMOCORE_TAG && \ |
| 37 | autoreconf -i && \ |
| 38 | ./configure && \ |
| 39 | make && \ |
| 40 | make install && \ |
| 41 | ldconfig -i |
| 42 | |
Ash Wilson | ad10aa9 | 2016-02-14 16:59:42 -0800 | [diff] [blame] | 43 | COPY ./ /src/ |
| 44 | RUN ls /src |
Ash Wilson | 86ab8bd | 2016-02-21 09:48:55 -0800 | [diff] [blame] | 45 | |
Ash Wilson | ad10aa9 | 2016-02-14 16:59:42 -0800 | [diff] [blame] | 46 | RUN mkdir /src/build && \ |
| 47 | cd /src/build && \ |
| 48 | cmake .. && \ |
| 49 | make && \ |
Ash Wilson | cef8c09 | 2016-02-21 10:32:12 -0800 | [diff] [blame] | 50 | # make test && \ |
Ash Wilson | ad10aa9 | 2016-02-14 16:59:42 -0800 | [diff] [blame] | 51 | make install && \ |
| 52 | ldconfig |