268 | | ==== Baseline GR |
| 269 | ==== Baseline GnuRadio |
| 270 | |
| 271 | Baseline GnuRadio starts from Baseline_uhd and then builds gnuradio verion 3.8 from source, against the installed UHD version. (Currently 3.15) |
| 272 | |
| 273 | If you need a different version of UHD or GnuRadio, please build it yourself from the parent image. |
| 274 | |
| 275 | [[CollapsibleStart(Reference Dockerfile)]] |
| 276 | |
| 277 | {{{#!dockerfile |
| 278 | FROM container_baseline:latest as baseline-gr38 |
| 279 | ENV DEBIAN_FRONTEND=noninteractive \ |
| 280 | TERM=linux |
| 281 | |
| 282 | RUN dpkg -l | grep uhd |
| 283 | |
| 284 | RUN add-apt-repository -s ppa:gnuradio/gnuradio-releases && \ |
| 285 | add-apt-repository -s ppa:ettusresearch/uhd && \ |
| 286 | apt update && \ |
| 287 | apt build-dep -qy \ |
| 288 | gnuradio |
| 289 | |
| 290 | ARG GR_VERSION=v3.8.1.0 |
| 291 | WORKDIR /opt/ |
| 292 | RUN git clone https://github.com/gnuradio/gnuradio -b $GR_VERSION \ |
| 293 | --single-branch --recurse-submodules |
| 294 | |
| 295 | RUN cd gnuradio && mkdir build && cd build && \ |
| 296 | cmake .. && make -j24 |
| 297 | # RUN cd gnuradio/build && make test -j24 |
| 298 | RUN cd gnuradio/build && make install -j24 |
| 299 | RUN ldconfig |
| 300 | |
| 301 | #set envs |
| 302 | RUN export "GNURADIO_PREFIX=$(gnuradio-config-info --prefix)" >> /root/.bashrc && \ |
| 303 | echo "export PYTHONPATH=$GNURADIO_PREFIX/lib/python3/dist-packages:$GNURADIO_PREFIX/lib/python3/site-packages:$PYTHONPATH" >> /root/.bashrc && \ |
| 304 | echo "export LD_LIBRARY_PATH=$GNURADIO_PREFIX/lib:$LD_LIBRARY_PATH" >> /root/.bashrc |
| 305 | |
| 306 | #remove source |
| 307 | RUN rm -rf /opt/gnuradio |
| 308 | |
| 309 | #clean up |
| 310 | RUN rm -f /etc/apt/apt.conf.d/01proxy && \ |
| 311 | rm -rf /var/lib/apt/lists/* && \ |
| 312 | apt clean && \ |
| 313 | apt autoclean |
| 314 | }}} |
| 315 | |
| 316 | [[CollapsibleEnd]] |
| 317 | |
| 318 | |