mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-01 04:49:33 +00:00
Docker script update for Ubuntu 20.04
This commit is contained in:
parent
f0a405f17c
commit
4ceae8857d
26 changed files with 12 additions and 44 deletions
22
docker/centos/latest/dev/Dockerfile
Normal file
22
docker/centos/latest/dev/Dockerfile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
ARG dist=centos
|
||||
ARG tag=latest
|
||||
ARG username=acetcom
|
||||
FROM ${username}/${dist}-${tag}-open5gs-base
|
||||
|
||||
MAINTAINER Sukchan Lee <acetcom@gmail.com>
|
||||
|
||||
RUN yum -y install \
|
||||
cscope \
|
||||
vim \
|
||||
sudo \
|
||||
iputils \
|
||||
net-tools
|
||||
|
||||
COPY setup.sh /root
|
||||
|
||||
ARG username=acetcom
|
||||
RUN useradd -m --uid=1000 ${username} && \
|
||||
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
|
||||
chmod 0440 /etc/sudoers.d/${username}
|
||||
|
||||
WORKDIR /home/${username}
|
||||
10
docker/centos/latest/dev/setup.sh
Executable file
10
docker/centos/latest/dev/setup.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! grep "ogstun" /proc/net/dev > /dev/null; then
|
||||
ip tuntap add name ogstun mode tun
|
||||
fi
|
||||
ip addr del 10.45.0.1/16 dev ogstun 2> /dev/null
|
||||
ip addr add 10.45.0.1/16 dev ogstun
|
||||
ip addr del cafe::1/64 dev ogstun 2> /dev/null
|
||||
ip addr add cafe::1/64 dev ogstun
|
||||
ip link set ogstun up
|
||||
Loading…
Add table
Add a link
Reference in a new issue