mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +00:00
add other OS for docker
This commit is contained in:
parent
f5582c97b5
commit
c8a65b6b18
19 changed files with 157 additions and 17 deletions
|
|
@ -5,13 +5,14 @@ FROM ${username}/${dist}-${tag}-base
|
|||
|
||||
MAINTAINER Sukchan Lee <acetcom@gmail.com>
|
||||
|
||||
WORKDIR /tmp
|
||||
WORKDIR /root
|
||||
COPY setup.sh /root
|
||||
|
||||
ARG USER=acetcom
|
||||
ARG REPO=nextepc
|
||||
ARG BRANCH=master
|
||||
RUN git clone https://github.com/$USER/$REPO
|
||||
ADD https://api.github.com/repos/$USER/$REPO/git/refs/heads/$BRANCH /tmp/version.json
|
||||
ADD https://api.github.com/repos/$USER/$REPO/git/refs/heads/$BRANCH /root/nextepc-ver.json
|
||||
|
||||
RUN cd nextepc && \
|
||||
git fetch && git checkout -f -B master origin/master && \
|
||||
|
|
@ -21,5 +22,3 @@ RUN cd nextepc && \
|
|||
--sysconfdir=/etc \
|
||||
--localstatedir=/var && \
|
||||
make -j `nproc` install
|
||||
|
||||
WORKDIR /root
|
||||
|
|
|
|||
10
support/docker/build/setup.sh
Executable file
10
support/docker/build/setup.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! grep "pgwtun" /proc/net/dev > /dev/null; then
|
||||
ip tuntap add name pgwtun mode tun
|
||||
fi
|
||||
ip addr del 45.45.0.1/16 dev pgwtun 2> /dev/null
|
||||
ip addr add 45.45.0.1/16 dev pgwtun
|
||||
ip addr del cafe::1/64 dev pgwtun 2> /dev/null
|
||||
ip addr add cafe::1/64 dev pgwtun
|
||||
ip link set pgwtun up
|
||||
Loading…
Add table
Add a link
Reference in a new issue