diff --git a/amf/Dockerfile b/amf/Dockerfile deleted file mode 100644 index 4732b26..0000000 --- a/amf/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/ausf/Dockerfile b/ausf/Dockerfile deleted file mode 100644 index 7c94fcd..0000000 --- a/ausf/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/base/Dockerfile b/base/Dockerfile index aaa205b..0ae4688 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -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 diff --git a/base/open5gs_init.sh b/base/open5gs_init.sh new file mode 100755 index 0000000..cebe85b --- /dev/null +++ b/base/open5gs_init.sh @@ -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 diff --git a/bsf/Dockerfile b/bsf/Dockerfile deleted file mode 100644 index 6d293a5..0000000 --- a/bsf/Dockerfile +++ /dev/null @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index 83bd9fe..05959dc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: diff --git a/hss/Dockerfile b/hss/Dockerfile deleted file mode 100644 index f10a396..0000000 --- a/hss/Dockerfile +++ /dev/null @@ -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 diff --git a/mme/Dockerfile b/mme/Dockerfile deleted file mode 100644 index ed9507c..0000000 --- a/mme/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/nrf/Dockerfile b/nrf/Dockerfile deleted file mode 100644 index f28b95c..0000000 --- a/nrf/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/nsa-deploy.yaml b/nsa-deploy.yaml index e3ce24a..26e1837 100644 --- a/nsa-deploy.yaml +++ b/nsa-deploy.yaml @@ -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: diff --git a/nssf/Dockerfile b/nssf/Dockerfile deleted file mode 100644 index d05be73..0000000 --- a/nssf/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/pcf/Dockerfile b/pcf/Dockerfile deleted file mode 100644 index 4a5dc9c..0000000 --- a/pcf/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/pcrf/Dockerfile b/pcrf/Dockerfile deleted file mode 100644 index a5eaa7a..0000000 --- a/pcrf/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/sa-deploy.yaml b/sa-deploy.yaml index c72c3c1..1b16c1a 100644 --- a/sa-deploy.yaml +++ b/sa-deploy.yaml @@ -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 diff --git a/sgwc/Dockerfile b/sgwc/Dockerfile deleted file mode 100644 index 6ebb1c6..0000000 --- a/sgwc/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/sgwu/Dockerfile b/sgwu/Dockerfile deleted file mode 100644 index f8cb88e..0000000 --- a/sgwu/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/smf/Dockerfile b/smf/Dockerfile deleted file mode 100644 index 4ec6166..0000000 --- a/smf/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/udm/Dockerfile b/udm/Dockerfile deleted file mode 100644 index c94cea5..0000000 --- a/udm/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/udr/Dockerfile b/udr/Dockerfile deleted file mode 100644 index 97e67f3..0000000 --- a/udr/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/upf/Dockerfile b/upf/Dockerfile deleted file mode 100644 index 8c4ff01..0000000 --- a/upf/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/webui/Dockerfile b/webui/Dockerfile deleted file mode 100644 index 21b19fb..0000000 --- a/webui/Dockerfile +++ /dev/null @@ -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