Skip to content

Instantly share code, notes, and snippets.

@0x2f0713
Last active March 25, 2023 16:35
Show Gist options
  • Save 0x2f0713/d0b80030e0d4411997256475d3db86ae to your computer and use it in GitHub Desktop.
Save 0x2f0713/d0b80030e0d4411997256475d3db86ae to your computer and use it in GitHub Desktop.
Docker build UHD, srsRAN, Open5Gs, Osmo
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND="noninteractive"
# ENV HTTP_PROXY here
RUN sed -i -e 's/archive.ubuntu.com/vn.archive.ubuntu.com/g' /etc/apt/sources.list && \
sed -i -e 's/security.ubuntu.com/vn.archive.ubuntu.com/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y \
curl \
ca-certificates \
git \
build-essential \
cmake \
libfftw3-dev \
libmbedtls-dev \
libboost-program-options-dev \
libconfig++-dev \
libsctp-dev \
libsqlite3-dev
# Setup Certificate
# Compile UHD
RUN git clone https://github.com/srsRAN/srsRAN_4G.git && \
mkdir srsRAN_4G/build && \
cd srsRAN_4G/build && \
cmake .. && \
make -j 4 && \
make install
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND="noninteractive"
# ENV HTTP_PROXY here
RUN sed -i -e 's/archive.ubuntu.com/vn.archive.ubuntu.com/g' /etc/apt/sources.list && \
sed -i -e 's/security.ubuntu.com/vn.archive.ubuntu.com/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y \
curl \
ca-certificates \
autoconf \
automake \
build-essential \
ccache \
cmake \
cpufrequtils \
doxygen \
ethtool \
g++ \
git \
inetutils-tools \
libboost-all-dev \
libncurses5 \
libncurses5-dev \
libusb-1.0-0 \
libusb-1.0-0-dev \
libusb-dev \
python3-dev \
python3-mako \
python3-numpy \
python3-requests \
python3-scipy \
python3-setuptools \
python3-ruamel.yaml
# Setup Certificate
# Compile UHD
RUN git clone https://github.com/EttusResearch/uhd && \
mkdir uhd/host/build && \
cd uhd/host/build && \
cmake .. && \
make -j 4 && \
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment