Ash Wilson | 628cf3b | 2016-01-30 14:13:08 -0800 | [diff] [blame] | 1 | FROM ubuntu:14.04 |
| 2 | |
| 3 | ENV GRGSM_GIT=https://github.com/ptrkrysik/gr-gsm |
| 4 | ENV OSMOCORE_GIT=git://git.osmocom.org/libosmocore.git |
| 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 | gnuradio-dev \ |
| 15 | gr-osmosdr \ |
| 16 | libgnuradio-osmosdr0.0.0 \ |
| 17 | libosmosdr-dev \ |
| 18 | libosmosdr0 \ |
| 19 | osmo-sdr \ |
| 20 | cmake \ |
| 21 | autoconf \ |
| 22 | libtool \ |
| 23 | python-talloc-dev \ |
| 24 | libtalloc2 \ |
| 25 | libtalloc-dev \ |
| 26 | libpcsclite-dev \ |
| 27 | build-essential \ |
| 28 | libboost-all-dev \ |
| 29 | libcppunit-dev swig \ |
| 30 | doxygen \ |
| 31 | liblog4cpp5-dev \ |
| 32 | python-scipy \ |
| 33 | librtlsdr-dev \ |
| 34 | librtlsdr0 \ |
Ash Wilson | 45e4c85 | 2016-01-30 16:12:21 -0800 | [diff] [blame] | 35 | rtl-sdr \ |
| 36 | wget |
Ash Wilson | 628cf3b | 2016-01-30 14:13:08 -0800 | [diff] [blame] | 37 | |
| 38 | |
| 39 | RUN /usr/bin/git clone $OSMOCORE_GIT && \ |
| 40 | cd libosmocore && \ |
| 41 | autoreconf -i && \ |
| 42 | ./configure && \ |
| 43 | make && \ |
| 44 | make install && \ |
| 45 | ldconfig -i |
| 46 | |
| 47 | #RUN /usr/bin/git clone $GR_OSMOSDR_GIT && \ |
| 48 | # cd gr-osmosdr && \ |
| 49 | # mkdir build && \ |
| 50 | # cd build && \ |
| 51 | # cmake .. && \ |
| 52 | # make && \ |
| 53 | # make install && \ |
| 54 | # ldconfig |
| 55 | |
Ash Wilson | 45e4c85 | 2016-01-30 16:12:21 -0800 | [diff] [blame] | 56 | #RUN /usr/bin/git clone $GRGSM_GIT && \ |
| 57 | # cd gr-gsm && \ |
| 58 | # mkdir build && \ |
| 59 | # cd build && \ |
| 60 | # cmake .. && \ |
| 61 | # make && \ |
| 62 | # sudo make install &&\ |
| 63 | # ldconfig |
Ash Wilson | 96a56b4 | 2016-01-30 15:13:13 -0800 | [diff] [blame] | 64 | |
Ash Wilson | 45e4c85 | 2016-01-30 16:12:21 -0800 | [diff] [blame] | 65 | COPY ./ /src/ |
| 66 | RUN ls /src |
| 67 | RUN mkdir /src/build && \ |
| 68 | cd /src/build && \ |
| 69 | cmake .. && \ |
| 70 | make && \ |
| 71 | make install && \ |
| 72 | ldconfig |