Skip to content

Commit

Permalink
ubuntu-uhd: Add Dockerfile for basic UHD testing in a Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mbr0wn committed May 15, 2019
1 parent aa03d18 commit b66e185
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions ubuntu-uhd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# ettusresearch/ubuntu-uhd:18.04

# Provides a base Ubuntu (18.04) image with latest UHD installed

FROM ubuntu:18.04
MAINTAINER Ettus Research

# Last build date - this can be updated whenever there are security updates so
# that everything is rebuilt
ENV security_updates_as_of 2019-05-15

# This will make apt-get install without question
ARG DEBIAN_FRONTEND=noninteractive
ARG UHD_TAG=v3.14.0.0
ARG MAKEWIDTH=2

# Install security updates and required packages
RUN apt-get update
RUN apt-get -y install -q \
build-essential \
ccache \
git \
python3-dev \
python3-pip \
curl
# Install UHD dependencies
RUN apt-get -y install -q \
libboost-all-dev \
libusb-1.0-0-dev \
libudev-dev \
python3-mako \
doxygen \
python3-docutils \
cmake \
python3-requests \
python3-numpy \
dpdk \
libdpdk-dev
RUN rm -rf /var/lib/apt/lists/*

RUN mkdir -p /usr/local/src
RUN git clone https://github.com/EttusResearch/uhd.git /usr/local/src/uhd
RUN cd /usr/local/src/uhd/ && git checkout $UHD_TAG
RUN mkdir -p /usr/local/src/uhd/host/build
WORKDIR /usr/local/src/uhd/host/build
RUN cmake .. -DENABLE_PYTHON3=ON -DUHD_RELEASE_MODE=release -DCMAKE_INSTALL_PREFIX=/usr
RUN make -j $MAKEWIDTH
RUN make install
RUN uhd_images_downloader
WORKDIR /

0 comments on commit b66e185

Please sign in to comment.