open5gs-master: Fix indentation

Use tabs everywhere, as usual with other Dockerfiles (eg.
open5gs-latest).

Change-Id: Ie4e72f484797ada718915e837cd38be574136631
This commit is contained in:
Pau Espin 2023-10-10 17:28:12 +02:00 committed by pespin
parent c68d4d9f0f
commit b3c5679bec
1 changed files with 38 additions and 38 deletions

View File

@ -3,56 +3,56 @@ ARG USER
ARG DISTRO
FROM $USER/$DISTRO-build
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
cmake \
vim \
sudo \
iproute2 \
iputils-ping \
libcap2-bin \
net-tools && \
apt-get clean
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
cmake \
vim \
sudo \
iproute2 \
iputils-ping \
libcap2-bin \
net-tools && \
apt-get clean
# create a user
ARG username=osmocom
RUN useradd -m ${username} && \
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username}
ARG username=osmocom
RUN useradd -m ${username} && \
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username}
WORKDIR /home/${username}
WORKDIR /home/${username}
# clone open5gs
ARG GITHUB_USER=open5gs
ARG GITHUB_REPO=open5gs
ARG OPEN5GS_BRANCH=main
RUN git clone https://github.com/$GITHUB_USER/$GITHUB_REPO
ARG GITHUB_USER=open5gs
ARG GITHUB_REPO=open5gs
ARG OPEN5GS_BRANCH=main
RUN git clone https://github.com/$GITHUB_USER/$GITHUB_REPO
# install dependencies specified in debian/control (cache them)
RUN cd $GITHUB_REPO && \
git checkout $OPEN5GS_BRANCH && \
apt-get build-dep -y .
RUN cd $GITHUB_REPO && \
git checkout $OPEN5GS_BRANCH && \
apt-get build-dep -y .
ADD https://api.github.com/repos/$GITHUB_USER/$GITHUB_REPO/git/refs/heads/$OPEN5GS_BRANCH /root/open5gs-ver.json
ADD https://api.github.com/repos/$GITHUB_USER/$GITHUB_REPO/git/refs/heads/$OPEN5GS_BRANCH /root/open5gs-ver.json
# update the source code (if needed)
RUN cd $GITHUB_REPO && \
git fetch && git checkout -f -B $OPEN5GS_BRANCH origin/$OPEN5GS_BRANCH
RUN cd $GITHUB_REPO && \
git fetch && git checkout -f -B $OPEN5GS_BRANCH origin/$OPEN5GS_BRANCH
# update installed dependencies, install missing (if any)
RUN cd $GITHUB_REPO && \
apt-get build-dep -y .
RUN cd $GITHUB_REPO && \
apt-get build-dep -y .
# build + install open5gs
RUN cd $GITHUB_REPO && \
meson build \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=lib/x86_64-linux-gnu \
--libexecdir=lib/x86_64-linux-gnu && \
meson configure build && \
ninja -C build install
RUN cd $GITHUB_REPO && \
meson build \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=lib/x86_64-linux-gnu \
--libexecdir=lib/x86_64-linux-gnu && \
meson configure build && \
ninja -C build install