-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
76 lines (54 loc) · 1.67 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
############# This Section is for setting up Base Container ##########
# Use Python Slim Buster as base image
FROM python:slim-buster
# Set up LSIO Image
RUN \
echo "**** install packages ****" && \
apt-get install \
faenza-icon-theme \
faenza-icon-theme-xfce4-appfinder \
faenza-icon-theme-xfce4-panel \
firefox-esr \
mousepad \
thunar \
xfce4 \
xfce4-terminal && \
xfce4-pulseaudio-plugin && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# ports and volumes
EXPOSE 3000
VOLUME /config
###########################################################
# Start now customizing Docker for OP25 Container
# Install git
RUN apt-get update
RUN apt-get install -y git
# Get OP25 code
RUN git clone https://github.com/boatbod/op25.git
# Set working directory
WORKDIR /op25
# Pre-build tasks
RUN cp /etc/apt/sources.list /etc/apt/sources.list~
RUN sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
RUN apt-get update
ENV DEBIAN_FRONTEND=noninteractive
# Download OP25 Packages
RUN apt-get -y build-dep gnuradio
RUN apt-get -y install gnuradio gnuradio-dev gr-osmosdr librtlsdr-dev libuhd-dev libhackrf-dev libitpp-dev libpcap-dev cmake git swig build-essential pkg-config doxygen python-numpy python-waitress python-requests gnuplot-x11
# Check file
RUN if [[ ! -f /etc/modprobe.d/blacklist-rtl.conf ]] \
echo "**** installing blacklist-rtl.conf ****" \
echo "**** please reboot before running op25 ****" \
install -m 0644 ./blacklist-rtl.conf /etc/modprobe.d/ \
fi
# Install OP25
RUN mkdir build
WORKDIR /op25/build
RUN cmake ../
RUN make
RUN make install
RUN ldconfig
WORKDIR /op25/op25/gr-op25_repeater/apps
CMD ["sh", "config/op25.sh"]