| FROM ubuntu:16.04 |
| MAINTAINER Piotr Krysik |
| |
| RUN apt-get update && apt-get install -y \ |
| cmake \ |
| autoconf \ |
| libtool \ |
| pkg-config \ |
| build-essential \ |
| python-docutils \ |
| libcppunit-dev \ |
| swig \ |
| doxygen \ |
| liblog4cpp5-dev \ |
| python-scipy \ |
| gnuradio-dev \ |
| gr-osmosdr \ |
| libosmocore-dev |
| |
| COPY ./ /src/ |
| RUN ls /src |
| |
| RUN mkdir /src/build |
| WORKDIR /src/build |
| RUN cmake .. && \ |
| # The parallel build sometimes fails when the .grc_gnuradio |
| # and .gnuradio directories do not exist |
| mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \ |
| make -j $(nproc) && \ |
| make install && \ |
| ldconfig && \ |
| make test |