Use single image for all open5gs components (Disk usage optimizations)
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/amf/amf_init.sh && \
|
||||
cd install/bin && ./open5gs-amfd
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/ausf/ausf_init.sh && \
|
||||
cd install/bin && ./open5gs-ausfd
|
@@ -76,6 +76,7 @@ ENV LD_LIBRARY_PATH=/open5gs/install/lib/x86_64-linux-gnu
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
ca-certificates \
|
||||
libssl-dev \
|
||||
libyaml-dev \
|
||||
@@ -87,9 +88,18 @@ RUN apt-get update && \
|
||||
netbase \
|
||||
ifupdown \
|
||||
net-tools \
|
||||
iputils-ping && \
|
||||
iputils-ping \
|
||||
python3-setuptools \
|
||||
python3-wheel \
|
||||
python3-pip \
|
||||
iptables && \
|
||||
apt-get autoremove -y && apt-get autoclean
|
||||
|
||||
RUN pip3 install click
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs && \
|
||||
apt-get remove -y curl && apt-get autoremove -y && apt-get autoclean
|
||||
|
||||
RUN update-ca-certificates
|
||||
|
||||
COPY --from=builder /open5gs/install/bin /open5gs/install/bin
|
||||
@@ -99,3 +109,6 @@ COPY --from=builder /open5gs/webui /open5gs/webui
|
||||
|
||||
# Set the working directory to open5gs
|
||||
WORKDIR open5gs
|
||||
|
||||
COPY open5gs_init.sh /
|
||||
CMD /open5gs_init.sh
|
||||
|
96
base/open5gs_init.sh
Executable file
96
base/open5gs_init.sh
Executable file
@@ -0,0 +1,96 @@
|
||||
#!/bin/bash
|
||||
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
if [[ -z "$COMPONENT_NAME" ]]; then
|
||||
echo "Error: COMPONENT_NAME environment variable not set"; exit 1;
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(amf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/amf/amf_init.sh && \
|
||||
cd install/bin && ./open5gs-amfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(ausf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/ausf/ausf_init.sh && \
|
||||
cd install/bin && ./open5gs-ausfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(bsf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/bsf/bsf_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-bsfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(hss-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/hss/hss_init.sh && \
|
||||
cd install/bin && sleep 10 && ./open5gs-hssd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(mme-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/mme/mme_init.sh && \
|
||||
cd install/bin && ./open5gs-mmed
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(nrf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/nrf/nrf_init.sh && \
|
||||
cd install/bin && ./open5gs-nrfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(nssf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/nssf/nssf_init.sh && \
|
||||
cd install/bin && ./open5gs-nssfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(pcf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/pcf/pcf_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-pcfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(pcrf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/pcrf/pcrf_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-pcrfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(sgwc-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/sgwc/sgwc_init.sh && \
|
||||
cd install/bin && ./open5gs-sgwcd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(sgwu-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/sgwu/sgwu_init.sh && \
|
||||
cd install/bin && ./open5gs-sgwud
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(smf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/smf/smf_init.sh && \
|
||||
cd install/bin && ./open5gs-smfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(udm-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/udm/udm_init.sh && \
|
||||
cd install/bin && ./open5gs-udmd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(udr-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/udr/udr_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-udrd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(upf-[[:digit:]]+$) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
/mnt/upf/upf_init.sh && \
|
||||
cd install/bin && ./open5gs-upfd
|
||||
elif [[ "$COMPONENT_NAME" =~ ^(webui) ]]; then
|
||||
echo "Deploying component: '$COMPONENT_NAME'"
|
||||
sleep 10 && /mnt/webui/webui_init.sh
|
||||
else
|
||||
echo "Error: Invalid component name: '$COMPONENT_NAME'"
|
||||
fi
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/bsf/bsf_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-bsfd
|
@@ -2,7 +2,7 @@ version: '3'
|
||||
services:
|
||||
mongo:
|
||||
build: ./mongo
|
||||
image: docker_open5gs_mongo
|
||||
image: docker_mongo
|
||||
container_name: mongo
|
||||
env_file:
|
||||
- .env
|
||||
@@ -18,13 +18,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${MONGO_IP}
|
||||
webui:
|
||||
build: ./webui
|
||||
image: docker_open5gs_webui
|
||||
image: docker_open5gs
|
||||
container_name: webui
|
||||
depends_on:
|
||||
- mongo
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=webui
|
||||
volumes:
|
||||
- ./webui:/mnt/webui
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
@@ -37,11 +38,12 @@ services:
|
||||
default:
|
||||
ipv4_address: ${WEBUI_IP}
|
||||
nrf:
|
||||
build: ./nrf
|
||||
image: docker_open5gs_nrf
|
||||
image: docker_open5gs
|
||||
container_name: nrf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=nrf-1
|
||||
volumes:
|
||||
- ./nrf:/mnt/nrf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -53,13 +55,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${NRF_IP}
|
||||
ausf:
|
||||
build: ./ausf
|
||||
image: docker_open5gs_ausf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: ausf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=ausf-1
|
||||
volumes:
|
||||
- ./ausf:/mnt/ausf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -71,14 +74,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${AUSF_IP}
|
||||
udr:
|
||||
build: ./udr
|
||||
image: docker_open5gs_udr
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: udr
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=udr-1
|
||||
volumes:
|
||||
- ./udr:/mnt/udr
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -90,13 +94,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UDR_IP}
|
||||
udm:
|
||||
build: ./udm
|
||||
image: docker_open5gs_udm
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: udm
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=udm-1
|
||||
volumes:
|
||||
- ./udm:/mnt/udm
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -108,14 +113,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UDM_IP}
|
||||
pcf:
|
||||
build: ./pcf
|
||||
image: docker_open5gs_pcf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: pcf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=pcf-1
|
||||
volumes:
|
||||
- ./pcf:/mnt/pcf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -127,14 +133,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${PCF_IP}
|
||||
bsf:
|
||||
build: ./bsf
|
||||
image: docker_open5gs_bsf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: bsf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=bsf-1
|
||||
volumes:
|
||||
- ./bsf:/mnt/bsf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -146,14 +153,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${BSF_IP}
|
||||
nssf:
|
||||
build: ./nssf
|
||||
image: docker_open5gs_nssf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: nssf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=nssf-1
|
||||
volumes:
|
||||
- ./nssf:/mnt/nssf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -165,11 +173,12 @@ services:
|
||||
default:
|
||||
ipv4_address: ${NSSF_IP}
|
||||
hss:
|
||||
build: ./hss
|
||||
image: docker_open5gs_hss
|
||||
image: docker_open5gs
|
||||
container_name: hss
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=hss-1
|
||||
volumes:
|
||||
- ./hss:/mnt/hss
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -188,14 +197,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${HSS_IP}
|
||||
sgwc:
|
||||
build: ./sgwc
|
||||
image: docker_open5gs_sgwc
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- smf
|
||||
- upf
|
||||
container_name: sgwc
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=sgwc-1
|
||||
volumes:
|
||||
- ./sgwc:/mnt/sgwc
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -208,14 +218,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${SGWC_IP}
|
||||
sgwu:
|
||||
build: ./sgwu
|
||||
image: docker_open5gs_sgwu
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- smf
|
||||
- upf
|
||||
container_name: sgwu
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=sgwu-1
|
||||
volumes:
|
||||
- ./sgwu:/mnt/sgwu
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -230,13 +241,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${SGWU_IP}
|
||||
smf:
|
||||
build: ./smf
|
||||
image: docker_open5gs_smf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: smf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=smf-1
|
||||
volumes:
|
||||
- ./smf:/mnt/smf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -256,14 +268,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${SMF_IP}
|
||||
upf:
|
||||
build: ./upf
|
||||
image: docker_open5gs_upf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- smf
|
||||
container_name: upf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=upf-1
|
||||
volumes:
|
||||
- ./upf:/mnt/upf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -285,8 +298,7 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UPF_IP}
|
||||
amf:
|
||||
build: ./amf
|
||||
image: docker_open5gs_amf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- smf
|
||||
- upf
|
||||
@@ -299,6 +311,8 @@ services:
|
||||
container_name: amf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=amf-1
|
||||
volumes:
|
||||
- ./amf:/mnt/amf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -313,8 +327,7 @@ services:
|
||||
default:
|
||||
ipv4_address: ${AMF_IP}
|
||||
mme:
|
||||
build: ./mme
|
||||
image: docker_open5gs_mme
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- hss
|
||||
- sgwc
|
||||
@@ -324,6 +337,8 @@ services:
|
||||
container_name: mme
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=mme-1
|
||||
volumes:
|
||||
- ./mme:/mnt/mme
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -344,11 +359,12 @@ services:
|
||||
default:
|
||||
ipv4_address: ${MME_IP}
|
||||
pcrf:
|
||||
build: ./pcrf
|
||||
image: docker_open5gs_pcrf
|
||||
image: docker_open5gs
|
||||
container_name: pcrf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=pcrf-1
|
||||
depends_on:
|
||||
- mongo
|
||||
volumes:
|
||||
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/hss/hss_init.sh && \
|
||||
cd install/bin && sleep 10 && ./open5gs-hssd
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/mme/mme_init.sh && \
|
||||
cd install/bin && ./open5gs-mmed
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/nrf/nrf_init.sh && \
|
||||
cd install/bin && ./open5gs-nrfd
|
@@ -2,7 +2,7 @@ version: '3'
|
||||
services:
|
||||
mongo:
|
||||
build: ./mongo
|
||||
image: docker_open5gs_mongo
|
||||
image: docker_mongo
|
||||
container_name: mongo
|
||||
env_file:
|
||||
- .env
|
||||
@@ -18,13 +18,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${MONGO_IP}
|
||||
webui:
|
||||
build: ./webui
|
||||
image: docker_open5gs_webui
|
||||
image: docker_open5gs
|
||||
container_name: webui
|
||||
depends_on:
|
||||
- mongo
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=webui
|
||||
volumes:
|
||||
- ./webui:/mnt/webui
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
@@ -37,11 +38,12 @@ services:
|
||||
default:
|
||||
ipv4_address: ${WEBUI_IP}
|
||||
nrf:
|
||||
build: ./nrf
|
||||
image: docker_open5gs_nrf
|
||||
image: docker_open5gs
|
||||
container_name: nrf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=nrf-1
|
||||
volumes:
|
||||
- ./nrf:/mnt/nrf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -53,13 +55,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${NRF_IP}
|
||||
ausf:
|
||||
build: ./ausf
|
||||
image: docker_open5gs_ausf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: ausf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=ausf-1
|
||||
volumes:
|
||||
- ./ausf:/mnt/ausf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -71,14 +74,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${AUSF_IP}
|
||||
udr:
|
||||
build: ./udr
|
||||
image: docker_open5gs_udr
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: udr
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=udr-1
|
||||
volumes:
|
||||
- ./udr:/mnt/udr
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -90,13 +94,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UDR_IP}
|
||||
udm:
|
||||
build: ./udm
|
||||
image: docker_open5gs_udm
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: udm
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=udm-1
|
||||
volumes:
|
||||
- ./udm:/mnt/udm
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -108,14 +113,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UDM_IP}
|
||||
pcf:
|
||||
build: ./pcf
|
||||
image: docker_open5gs_pcf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: pcf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=pcf-1
|
||||
volumes:
|
||||
- ./pcf:/mnt/pcf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -127,14 +133,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${PCF_IP}
|
||||
bsf:
|
||||
build: ./bsf
|
||||
image: docker_open5gs_bsf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: bsf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=bsf-1
|
||||
volumes:
|
||||
- ./bsf:/mnt/bsf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -146,14 +153,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${BSF_IP}
|
||||
nssf:
|
||||
build: ./nssf
|
||||
image: docker_open5gs_nssf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: nssf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=nssf-1
|
||||
volumes:
|
||||
- ./nssf:/mnt/nssf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -165,11 +173,12 @@ services:
|
||||
default:
|
||||
ipv4_address: ${NSSF_IP}
|
||||
hss:
|
||||
build: ./hss
|
||||
image: docker_open5gs_hss
|
||||
image: docker_open5gs
|
||||
container_name: hss
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=hss-1
|
||||
volumes:
|
||||
- ./hss:/mnt/hss
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -188,14 +197,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${HSS_IP}
|
||||
sgwc:
|
||||
build: ./sgwc
|
||||
image: docker_open5gs_sgwc
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- smf
|
||||
- upf
|
||||
container_name: sgwc
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=sgwc-1
|
||||
volumes:
|
||||
- ./sgwc:/mnt/sgwc
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -208,14 +218,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${SGWC_IP}
|
||||
sgwu:
|
||||
build: ./sgwu
|
||||
image: docker_open5gs_sgwu
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- smf
|
||||
- upf
|
||||
container_name: sgwu
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=sgwu-1
|
||||
volumes:
|
||||
- ./sgwu:/mnt/sgwu
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -230,13 +241,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${SGWU_IP}
|
||||
smf:
|
||||
build: ./smf
|
||||
image: docker_open5gs_smf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: smf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=smf-1
|
||||
volumes:
|
||||
- ./smf:/mnt/smf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -256,14 +268,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${SMF_IP}
|
||||
upf:
|
||||
build: ./upf
|
||||
image: docker_open5gs_upf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- smf
|
||||
container_name: upf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=upf-1
|
||||
volumes:
|
||||
- ./upf:/mnt/upf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -285,8 +298,7 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UPF_IP}
|
||||
amf:
|
||||
build: ./amf
|
||||
image: docker_open5gs_amf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- smf
|
||||
- upf
|
||||
@@ -299,6 +311,8 @@ services:
|
||||
container_name: amf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=amf-1
|
||||
volumes:
|
||||
- ./amf:/mnt/amf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -313,8 +327,7 @@ services:
|
||||
default:
|
||||
ipv4_address: ${AMF_IP}
|
||||
mme:
|
||||
build: ./mme
|
||||
image: docker_open5gs_mme
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- hss
|
||||
- sgwc
|
||||
@@ -324,6 +337,8 @@ services:
|
||||
container_name: mme
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=mme-1
|
||||
volumes:
|
||||
- ./mme:/mnt/mme
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -344,11 +359,12 @@ services:
|
||||
default:
|
||||
ipv4_address: ${MME_IP}
|
||||
pcrf:
|
||||
build: ./pcrf
|
||||
image: docker_open5gs_pcrf
|
||||
image: docker_open5gs
|
||||
container_name: pcrf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=pcrf-1
|
||||
depends_on:
|
||||
- mongo
|
||||
volumes:
|
||||
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/nssf/nssf_init.sh && \
|
||||
cd install/bin && ./open5gs-nssfd
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/pcf/pcf_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-pcfd
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/pcrf/pcrf_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-pcrfd
|
@@ -2,7 +2,7 @@ version: '3'
|
||||
services:
|
||||
mongo:
|
||||
build: ./mongo
|
||||
image: docker_open5gs_mongo
|
||||
image: docker_mongo
|
||||
container_name: mongo
|
||||
env_file:
|
||||
- .env
|
||||
@@ -18,13 +18,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${MONGO_IP}
|
||||
webui:
|
||||
build: ./webui
|
||||
image: docker_open5gs_webui
|
||||
image: docker_open5gs
|
||||
container_name: webui
|
||||
depends_on:
|
||||
- mongo
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=webui
|
||||
volumes:
|
||||
- ./webui:/mnt/webui
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
@@ -37,11 +38,12 @@ services:
|
||||
default:
|
||||
ipv4_address: ${WEBUI_IP}
|
||||
nrf:
|
||||
build: ./nrf
|
||||
image: docker_open5gs_nrf
|
||||
image: docker_open5gs
|
||||
container_name: nrf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=nrf-1
|
||||
volumes:
|
||||
- ./nrf:/mnt/nrf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -53,13 +55,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${NRF_IP}
|
||||
ausf:
|
||||
build: ./ausf
|
||||
image: docker_open5gs_ausf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: ausf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=ausf-1
|
||||
volumes:
|
||||
- ./ausf:/mnt/ausf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -71,14 +74,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${AUSF_IP}
|
||||
udr:
|
||||
build: ./udr
|
||||
image: docker_open5gs_udr
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: udr
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=udr-1
|
||||
volumes:
|
||||
- ./udr:/mnt/udr
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -90,13 +94,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UDR_IP}
|
||||
udm:
|
||||
build: ./udm
|
||||
image: docker_open5gs_udm
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: udm
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=udm-1
|
||||
volumes:
|
||||
- ./udm:/mnt/udm
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -108,13 +113,14 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UDM_IP}
|
||||
smf:
|
||||
build: ./smf
|
||||
image: docker_open5gs_smf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
container_name: smf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=smf-1
|
||||
volumes:
|
||||
- ./smf:/mnt/smf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -134,14 +140,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${SMF_IP}
|
||||
upf:
|
||||
build: ./upf
|
||||
image: docker_open5gs_upf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- smf
|
||||
container_name: upf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=upf-1
|
||||
volumes:
|
||||
- ./upf:/mnt/upf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -163,8 +170,7 @@ services:
|
||||
default:
|
||||
ipv4_address: ${UPF_IP}
|
||||
amf:
|
||||
build: ./amf
|
||||
image: docker_open5gs_amf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- smf
|
||||
- upf
|
||||
@@ -177,6 +183,8 @@ services:
|
||||
container_name: amf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=amf-1
|
||||
volumes:
|
||||
- ./amf:/mnt/amf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -191,14 +199,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${AMF_IP}
|
||||
pcf:
|
||||
build: ./pcf
|
||||
image: docker_open5gs_pcf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: pcf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=pcf-1
|
||||
volumes:
|
||||
- ./pcf:/mnt/pcf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -210,14 +219,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${PCF_IP}
|
||||
bsf:
|
||||
build: ./bsf
|
||||
image: docker_open5gs_bsf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: bsf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=bsf-1
|
||||
volumes:
|
||||
- ./bsf:/mnt/bsf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
@@ -229,14 +239,15 @@ services:
|
||||
default:
|
||||
ipv4_address: ${BSF_IP}
|
||||
nssf:
|
||||
build: ./nssf
|
||||
image: docker_open5gs_nssf
|
||||
image: docker_open5gs
|
||||
depends_on:
|
||||
- nrf
|
||||
- mongo
|
||||
container_name: nssf
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COMPONENT_NAME=nssf-1
|
||||
volumes:
|
||||
- ./nssf:/mnt/nssf
|
||||
- ./log:/open5gs/install/var/log/open5gs
|
||||
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/sgwc/sgwc_init.sh && \
|
||||
cd install/bin && ./open5gs-sgwcd
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/sgwu/sgwu_init.sh && \
|
||||
cd install/bin && ./open5gs-sgwud
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/smf/smf_init.sh && \
|
||||
cd install/bin && ./open5gs-smfd
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/udm/udm_init.sh && \
|
||||
cd install/bin && ./open5gs-udmd
|
@@ -1,30 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
CMD /mnt/udr/udr_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-udrd
|
@@ -1,42 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
python3-setuptools \
|
||||
python3-wheel \
|
||||
python3-pip \
|
||||
iptables && \
|
||||
apt-get autoremove -y && apt-get autoclean
|
||||
|
||||
RUN pip3 install click
|
||||
|
||||
CMD /mnt/upf/upf_init.sh && \
|
||||
cd install/bin && ./open5gs-upfd
|
@@ -1,38 +0,0 @@
|
||||
# BSD 2-Clause License
|
||||
|
||||
# Copyright (c) 2020, Supreeth Herle
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends curl && \
|
||||
apt-get autoremove -y && apt-get autoclean
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs && \
|
||||
apt-get remove -y curl && apt-get autoremove -y && apt-get autoclean
|
||||
|
||||
CMD sleep 10 && /mnt/webui/webui_init.sh
|
Reference in New Issue
Block a user