-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
54 lines (48 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:focal
# Utilities and libraries
RUN apt update && \
DEBIAN_FRONTEND="noninteractive" apt install -y \
cmake \
doxygen \
g++ \
gir1.2-gtk-3.0 \
git \
libboost-all-dev \
libfftw3-dev \
libgmp3-dev \
liblog4cpp5-dev \
libqwt-qt5-dev \
python3-click-plugins \
python3-distutils \
python3-gi-cairo \
python3-mako \
python3-numpy \
python3-pip \
python3-pyqt5 \
python3-pyqtgraph \
python3-scipy \
python3-yaml \
qtbase5-dev \
clang-format
RUN apt install -y --no-install-recommends libuhd-dev
# Pip dependencies
RUN pip3 install "pybind11[global]" pygccxml
# Volk
RUN mkdir src/ && cd src/ && \
git clone --recursive https://github.com/gnuradio/volk.git && \
cd volk && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../ \
&& make && make test && make install
# Configure the paths required to run GR
ENV GR_PREFIX=/root/gr_prefix
WORKDIR $GR_PREFIX
RUN PYSITEDIR=$(python3 -m site --user-site) && \
mkdir -p "$PYSITEDIR" && \
echo "$GR_PREFIX/lib/python3/dist-packages/" > "$PYSITEDIR/gnuradio.pth"
RUN echo "$GR_PREFIX/lib/" >> /etc/ld.so.conf.d/gnuradio.conf
RUN echo "export PATH=$GR_PREFIX/bin/:${PATH}" >> /root/.bashrc
# Change the entrypoint to run ldconfig on startup
ADD entrypoint.sh /bin/entrypoint
RUN chmod +x /bin/entrypoint
ENTRYPOINT ["/bin/entrypoint"]
CMD ["/bin/bash"]