mirror of
				https://github.com/Gradiant/5g-images.git
				synced 2025-11-03 21:33:16 +00:00 
			
		
		
		
	oai-cn5g docs
This commit is contained in:
		
							
								
								
									
										321
									
								
								docs/oai-cn5g-and-ueransim/(probar)_core-basic-nrf-vpp.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										321
									
								
								docs/oai-cn5g-and-ueransim/(probar)_core-basic-nrf-vpp.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,321 @@
 | 
			
		||||
version: '3.8'
 | 
			
		||||
services:
 | 
			
		||||
    mysql:
 | 
			
		||||
        container_name: "mysql"
 | 
			
		||||
        image: mysql:5.7
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./oai_db2.sql:/docker-entrypoint-initdb.d/oai_db.sql
 | 
			
		||||
            - ./mysql-healthcheck2.sh:/tmp/mysql-healthcheck.sh
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - MYSQL_DATABASE=oai_db
 | 
			
		||||
            - MYSQL_USER=test
 | 
			
		||||
            - MYSQL_PASSWORD=test
 | 
			
		||||
            - MYSQL_ROOT_PASSWORD=linux
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/tmp/mysql-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_cp:
 | 
			
		||||
                ipv4_address: 192.168.70.131
 | 
			
		||||
    oai-udr:
 | 
			
		||||
        container_name: "oai-udr"
 | 
			
		||||
        image: oai-udr:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - UDR_INTERFACE_NAME_FOR_NUDR=eth0
 | 
			
		||||
            - UDR_INTERFACE_PORT_FOR_NUDR=80
 | 
			
		||||
            - UDR_INTERFACE_HTTP2_PORT_FOR_NUDR=8080
 | 
			
		||||
            - UDR_API_VERSION=v1
 | 
			
		||||
            - MYSQL_IPV4_ADDRESS=192.168.70.131
 | 
			
		||||
            - MYSQL_USER=test
 | 
			
		||||
            - MYSQL_PASS=test
 | 
			
		||||
            - MYSQL_DB=oai_db
 | 
			
		||||
            - WAIT_MYSQL=120
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - mysql
 | 
			
		||||
            - oai-nrf
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_cp:
 | 
			
		||||
                ipv4_address: 192.168.70.136
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./udr-healthcheck.sh:/openair-udr/bin/udr-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-udr/bin/udr-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-udm:
 | 
			
		||||
        container_name: "oai-udm"
 | 
			
		||||
        image: oai-udm:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - UDM_NAME=OAI_UDM
 | 
			
		||||
            - SBI_IF_NAME=eth0
 | 
			
		||||
            - SBI_PORT=80
 | 
			
		||||
            - UDM_VERSION_NB=v1
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
            - UDR_IP_ADDRESS=192.168.70.136
 | 
			
		||||
            - UDR_PORT=80
 | 
			
		||||
            - UDR_VERSION_NB=v1
 | 
			
		||||
            - UDR_FQDN=oai-udr
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-udr
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_cp:
 | 
			
		||||
                ipv4_address: 192.168.70.137
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./udm-healthcheck.sh:/openair-udm/bin/udm-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-udm/bin/udm-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-ausf:
 | 
			
		||||
        container_name: "oai-ausf"
 | 
			
		||||
        image: oai-ausf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE_ID=0
 | 
			
		||||
            - PID_DIR=/var/run
 | 
			
		||||
            - AUSF_NAME=OAI_AUSF
 | 
			
		||||
            - SBI_IF_NAME=eth0
 | 
			
		||||
            - SBI_PORT=80
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
            - UDM_IP_ADDRESS=192.168.70.137
 | 
			
		||||
            - UDM_PORT=80
 | 
			
		||||
            - UDM_VERSION_NB=v1
 | 
			
		||||
            - UDM_FQDN=oai-udm
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-udm
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_cp:
 | 
			
		||||
                ipv4_address: 192.168.70.138
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./ausf-healthcheck.sh:/openair-ausf/bin/ausf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-ausf/bin/ausf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-nrf:
 | 
			
		||||
        container_name: "oai-nrf"
 | 
			
		||||
        image: oai-nrf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - NRF_INTERFACE_NAME_FOR_SBI=eth0
 | 
			
		||||
            - NRF_INTERFACE_PORT_FOR_SBI=80
 | 
			
		||||
            - NRF_INTERFACE_HTTP2_PORT_FOR_SBI=9090
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_cp:
 | 
			
		||||
                ipv4_address: 192.168.70.130
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./nrf-healthcheck.sh:/openair-nrf/bin/nrf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-nrf/bin/nrf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-amf:
 | 
			
		||||
        container_name: "oai-amf"
 | 
			
		||||
        image: oai-amf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - MCC=208
 | 
			
		||||
            - MNC=95
 | 
			
		||||
            - REGION_ID=128
 | 
			
		||||
            - AMF_SET_ID=1
 | 
			
		||||
            - SERVED_GUAMI_MCC_0=208
 | 
			
		||||
            - SERVED_GUAMI_MNC_0=95
 | 
			
		||||
            - SERVED_GUAMI_REGION_ID_0=128
 | 
			
		||||
            - SERVED_GUAMI_AMF_SET_ID_0=1
 | 
			
		||||
            - SERVED_GUAMI_MCC_1=460
 | 
			
		||||
            - SERVED_GUAMI_MNC_1=11
 | 
			
		||||
            - SERVED_GUAMI_REGION_ID_1=10
 | 
			
		||||
            - SERVED_GUAMI_AMF_SET_ID_1=1
 | 
			
		||||
            - PLMN_SUPPORT_MCC=208
 | 
			
		||||
            - PLMN_SUPPORT_MNC=95
 | 
			
		||||
            - PLMN_SUPPORT_TAC=0xa000
 | 
			
		||||
            - SST_0=222
 | 
			
		||||
            - SD_0=123
 | 
			
		||||
            - SST_1=1
 | 
			
		||||
            - SD_1=12
 | 
			
		||||
            - AMF_INTERFACE_NAME_FOR_NGAP=eth0
 | 
			
		||||
            - AMF_INTERFACE_NAME_FOR_N11=eth0
 | 
			
		||||
            - SMF_INSTANCE_ID_0=1
 | 
			
		||||
            - SMF_FQDN_0=oai-smf
 | 
			
		||||
            - SMF_IPV4_ADDR_0=192.168.70.133
 | 
			
		||||
            - SMF_HTTP_VERSION_0=v1
 | 
			
		||||
            - SELECTED_0=true
 | 
			
		||||
            - SMF_INSTANCE_ID_1=2
 | 
			
		||||
            - SMF_FQDN_1=oai-smf
 | 
			
		||||
            - SMF_IPV4_ADDR_1=0.0.0.0
 | 
			
		||||
            - SMF_HTTP_VERSION_1=v1
 | 
			
		||||
            - SELECTED_1=false
 | 
			
		||||
            - MYSQL_SERVER=192.168.70.131
 | 
			
		||||
            - MYSQL_USER=root
 | 
			
		||||
            - MYSQL_PASS=linux
 | 
			
		||||
            - MYSQL_DB=oai_db
 | 
			
		||||
            - OPERATOR_KEY=63bfa50ee6523365ff14c1f45f88737d
 | 
			
		||||
            - NRF_IPV4_ADDRESS=192.168.70.130
 | 
			
		||||
            - NRF_PORT=80
 | 
			
		||||
            - NF_REGISTRATION=yes
 | 
			
		||||
            - SMF_SELECTION=yes
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
            - EXTERNAL_AUSF=yes
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - NRF_FQDN=oai-nrf
 | 
			
		||||
            - AUSF_IPV4_ADDRESS=192.168.70.138
 | 
			
		||||
            - AUSF_PORT=80
 | 
			
		||||
            - AUSF_API_VERSION=v1
 | 
			
		||||
            - AUSF_FQDN=oai-ausf
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - mysql
 | 
			
		||||
            - vpp-upf
 | 
			
		||||
            - oai-ext-dn
 | 
			
		||||
            - oai-ausf
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./amf-healthcheck.sh:/openair-amf/bin/amf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-amf/bin/amf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 15s
 | 
			
		||||
            retries: 5
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_cp:
 | 
			
		||||
                ipv4_address: 192.168.70.132
 | 
			
		||||
    oai-smf:
 | 
			
		||||
        container_name: "oai-smf"
 | 
			
		||||
        image: oai-smf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - SMF_INTERFACE_NAME_FOR_N4=eth0
 | 
			
		||||
            - SMF_INTERFACE_NAME_FOR_SBI=eth0
 | 
			
		||||
            - SMF_INTERFACE_PORT_FOR_SBI=80
 | 
			
		||||
            - SMF_INTERFACE_HTTP2_PORT_FOR_SBI=9090
 | 
			
		||||
            - SMF_API_VERSION=v1
 | 
			
		||||
            - DEFAULT_DNS_IPV4_ADDRESS=192.168.18.129
 | 
			
		||||
            - DEFAULT_DNS_SEC_IPV4_ADDRESS=192.168.18.129
 | 
			
		||||
            - AMF_IPV4_ADDRESS=192.168.70.132
 | 
			
		||||
            - AMF_PORT=80
 | 
			
		||||
            - AMF_API_VERSION=v1
 | 
			
		||||
            - AMF_FQDN=oai-amf
 | 
			
		||||
            - UDM_IPV4_ADDRESS=192.168.70.137
 | 
			
		||||
            - UDM_PORT=80
 | 
			
		||||
            - UDM_API_VERSION=v1
 | 
			
		||||
            - UDM_FQDN=oai-udm
 | 
			
		||||
            - UPF_IPV4_ADDRESS=192.168.70.202
 | 
			
		||||
            - UPF_FQDN_0=gw1.vppupf.node.5gcn.mnc95.mcc208.3gppnetwork.org
 | 
			
		||||
            - NRF_IPV4_ADDRESS=192.168.70.130
 | 
			
		||||
            - NRF_PORT=80
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - NRF_FQDN=oai-nrf
 | 
			
		||||
            - REGISTER_NRF=yes
 | 
			
		||||
            - DISCOVER_UPF=yes
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
            - USE_NETWORK_INSTANCE=yes
 | 
			
		||||
        extra_hosts:
 | 
			
		||||
            - "gw1.vppupf.node.5gcn.mnc95.mcc208.3gppnetwork.org:192.168.70.202"
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-amf
 | 
			
		||||
        volumes:
 | 
			
		||||
             - ./smf-healthcheck.sh:/openair-smf/bin/smf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
             test: /bin/bash -c "/openair-smf/bin/smf-healthcheck.sh"
 | 
			
		||||
             interval: 10s
 | 
			
		||||
             timeout: 5s
 | 
			
		||||
             retries: 5
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_cp:
 | 
			
		||||
                ipv4_address: 192.168.70.133
 | 
			
		||||
    vpp-upf:
 | 
			
		||||
        image: oai-upf-vpp:latest
 | 
			
		||||
        privileged: true
 | 
			
		||||
        container_name: "vpp-upf"
 | 
			
		||||
        environment:
 | 
			
		||||
            - NWI_N3=access.oai.org
 | 
			
		||||
            - NWI_N6=core.oai.org
 | 
			
		||||
            - GW_ID=1
 | 
			
		||||
            - MNC03=95
 | 
			
		||||
            - MCC=208
 | 
			
		||||
            - REALM=3gppnetwork.org
 | 
			
		||||
            - NETWORK_UE_IP=12.1.1.0/24
 | 
			
		||||
            - N3_IPV4_ADDRESS_REMOTE=192.168.72.141 #   GNB  IP Address
 | 
			
		||||
            - N4_IPV4_ADDRESS_REMOTE=192.168.70.133 #   SMF  IP Address
 | 
			
		||||
            - N6_IPV4_ADDRESS_REMOTE=192.168.73.135 # EXT-DN IP Address
 | 
			
		||||
            - VPP_MAIN_CORE=0
 | 
			
		||||
            - VPP_CORE_WORKER=1
 | 
			
		||||
#           - VPP_PLUGIN_PATH=/usr/lib64/vpp_plugins/                # RHEL7
 | 
			
		||||
            - VPP_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/vpp_plugins/ # Ubntu18.04
 | 
			
		||||
            - INTERFACE_ACCESS=eth0
 | 
			
		||||
            - INTERFACE_CORE=eth1
 | 
			
		||||
            - INTERFACE_CP=eth2
 | 
			
		||||
            - NSSAI_SD_0=222
 | 
			
		||||
            - SST=123
 | 
			
		||||
            - DNN=default
 | 
			
		||||
            - REGISTER_NRF=yes
 | 
			
		||||
            - NRF_IP_ADDR=192.168.70.130
 | 
			
		||||
            - NRF_PORT=9090
 | 
			
		||||
            - HTTP_VERSION=2
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-nrf
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "pgrep vpp"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_cp:
 | 
			
		||||
                ipv4_address: 192.168.70.134
 | 
			
		||||
            public_net_access:
 | 
			
		||||
                ipv4_address: 192.168.72.134
 | 
			
		||||
            public_net_core:
 | 
			
		||||
                ipv4_address: 192.168.73.134
 | 
			
		||||
    oai-ext-dn:
 | 
			
		||||
        image: ubuntu:bionic
 | 
			
		||||
        privileged: true
 | 
			
		||||
        container_name: "oai-ext-dn"
 | 
			
		||||
        entrypoint: /bin/bash -c \
 | 
			
		||||
              "apt update; apt install -y iptables iproute2 iputils-ping;"\
 | 
			
		||||
              "iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;"\
 | 
			
		||||
              "ip route add 12.1.1.0/24 via 192.168.73.202 dev eth0; sleep infinity"
 | 
			
		||||
        command: ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - vpp-upf
 | 
			
		||||
        networks:
 | 
			
		||||
            public_net_core:
 | 
			
		||||
                ipv4_address: 192.168.73.135
 | 
			
		||||
networks:
 | 
			
		||||
    public_net_cp:
 | 
			
		||||
        name: oai-public-cp
 | 
			
		||||
        ipam:
 | 
			
		||||
            config:
 | 
			
		||||
                - subnet: 192.168.70.0/24
 | 
			
		||||
        driver_opts:
 | 
			
		||||
            com.docker.network.bridge.name: "cn5g-public"
 | 
			
		||||
    public_net_access:
 | 
			
		||||
        name: oai-public-access
 | 
			
		||||
        ipam:
 | 
			
		||||
            config:
 | 
			
		||||
                - subnet: 192.168.72.0/24
 | 
			
		||||
        driver_opts:
 | 
			
		||||
            com.docker.network.bridge.name: "cn5g-access"
 | 
			
		||||
    public_net_core:
 | 
			
		||||
        name: oai-public-core
 | 
			
		||||
        ipam:
 | 
			
		||||
            config:
 | 
			
		||||
                - subnet: 192.168.73.0/24
 | 
			
		||||
        driver_opts:
 | 
			
		||||
            com.docker.network.bridge.name: "cn5g-core"
 | 
			
		||||
							
								
								
									
										216
									
								
								docs/oai-cn5g-and-ueransim/bbdd/oai_db1.sql
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										216
									
								
								docs/oai-cn5g-and-ueransim/bbdd/oai_db1.sql
									
									
									
									
									
										Executable file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										309
									
								
								docs/oai-cn5g-and-ueransim/bbdd/oai_db2.sql
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										309
									
								
								docs/oai-cn5g-and-ueransim/bbdd/oai_db2.sql
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,309 @@
 | 
			
		||||
-- phpMyAdmin SQL Dump
 | 
			
		||||
-- version 5.1.0
 | 
			
		||||
-- https://www.phpmyadmin.net/
 | 
			
		||||
--
 | 
			
		||||
-- Host: 172.16.200.10:3306
 | 
			
		||||
-- Generation Time: Mar 22, 2021 at 10:31 AM
 | 
			
		||||
-- Server version: 5.7.33
 | 
			
		||||
-- PHP Version: 7.4.15
 | 
			
		||||
 | 
			
		||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
 | 
			
		||||
START TRANSACTION;
 | 
			
		||||
SET time_zone = "+00:00";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
 | 
			
		||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
 | 
			
		||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
 | 
			
		||||
/*!40101 SET NAMES utf8mb4 */;
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Database: `oai_db`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Table structure for table `AccessAndMobilitySubscriptionData`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
CREATE TABLE `AccessAndMobilitySubscriptionData` (
 | 
			
		||||
  `ueid` varchar(15) NOT NULL,
 | 
			
		||||
  `servingPlmnid` varchar(15) NOT NULL,
 | 
			
		||||
  `supportedFeatures` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `gpsis` json DEFAULT NULL,
 | 
			
		||||
  `internalGroupIds` json DEFAULT NULL,
 | 
			
		||||
  `sharedVnGroupDataIds` json DEFAULT NULL,
 | 
			
		||||
  `subscribedUeAmbr` json DEFAULT NULL,
 | 
			
		||||
  `nssai` json DEFAULT NULL,
 | 
			
		||||
  `ratRestrictions` json DEFAULT NULL,
 | 
			
		||||
  `forbiddenAreas` json DEFAULT NULL,
 | 
			
		||||
  `serviceAreaRestriction` json DEFAULT NULL,
 | 
			
		||||
  `coreNetworkTypeRestrictions` json DEFAULT NULL,
 | 
			
		||||
  `rfspIndex` int(10) DEFAULT NULL,
 | 
			
		||||
  `subsRegTimer` int(10) DEFAULT NULL,
 | 
			
		||||
  `ueUsageType` int(10) DEFAULT NULL,
 | 
			
		||||
  `mpsPriority` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `mcsPriority` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `activeTime` int(10) DEFAULT NULL,
 | 
			
		||||
  `sorInfo` json DEFAULT NULL,
 | 
			
		||||
  `sorInfoExpectInd` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `sorafRetrieval` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `sorUpdateIndicatorList` json DEFAULT NULL,
 | 
			
		||||
  `upuInfo` json DEFAULT NULL,
 | 
			
		||||
  `micoAllowed` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `sharedAmDataIds` json DEFAULT NULL,
 | 
			
		||||
  `odbPacketServices` json DEFAULT NULL,
 | 
			
		||||
  `serviceGapTime` int(10) DEFAULT NULL,
 | 
			
		||||
  `mdtUserConsent` json DEFAULT NULL,
 | 
			
		||||
  `mdtConfiguration` json DEFAULT NULL,
 | 
			
		||||
  `traceData` json DEFAULT NULL,
 | 
			
		||||
  `cagData` json DEFAULT NULL,
 | 
			
		||||
  `stnSr` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `cMsisdn` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `nbIoTUePriority` int(10) DEFAULT NULL,
 | 
			
		||||
  `nssaiInclusionAllowed` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `rgWirelineCharacteristics` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `ecRestrictionDataWb` json DEFAULT NULL,
 | 
			
		||||
  `ecRestrictionDataNb` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `expectedUeBehaviourList` json DEFAULT NULL,
 | 
			
		||||
  `primaryRatRestrictions` json DEFAULT NULL,
 | 
			
		||||
  `secondaryRatRestrictions` json DEFAULT NULL,
 | 
			
		||||
  `edrxParametersList` json DEFAULT NULL,
 | 
			
		||||
  `ptwParametersList` json DEFAULT NULL,
 | 
			
		||||
  `iabOperationAllowed` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `wirelineForbiddenAreas` json DEFAULT NULL,
 | 
			
		||||
  `wirelineServiceAreaRestriction` json DEFAULT NULL
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Table structure for table `Amf3GppAccessRegistration`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
CREATE TABLE `Amf3GppAccessRegistration` (
 | 
			
		||||
  `ueid` varchar(15) NOT NULL,
 | 
			
		||||
  `amfInstanceId` varchar(50) NOT NULL,
 | 
			
		||||
  `supportedFeatures` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `purgeFlag` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `pei` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `imsVoPs` json DEFAULT NULL,
 | 
			
		||||
  `deregCallbackUri` varchar(50) NOT NULL,
 | 
			
		||||
  `amfServiceNameDereg` json DEFAULT NULL,
 | 
			
		||||
  `pcscfRestorationCallbackUri` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `amfServiceNamePcscfRest` json DEFAULT NULL,
 | 
			
		||||
  `initialRegistrationInd` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `guami` json NOT NULL,
 | 
			
		||||
  `backupAmfInfo` json DEFAULT NULL,
 | 
			
		||||
  `drFlag` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `ratType` json NOT NULL,
 | 
			
		||||
  `urrpIndicator` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `amfEeSubscriptionId` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `epsInterworkingInfo` json DEFAULT NULL,
 | 
			
		||||
  `ueSrvccCapability` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `registrationTime` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `vgmlcAddress` json DEFAULT NULL,
 | 
			
		||||
  `contextInfo` json DEFAULT NULL,
 | 
			
		||||
  `noEeSubscriptionInd` tinyint(1) DEFAULT NULL
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Table structure for table `AuthenticationStatus`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
CREATE TABLE `AuthenticationStatus` (
 | 
			
		||||
  `ueid` varchar(20) NOT NULL,
 | 
			
		||||
  `nfInstanceId` varchar(50) NOT NULL,
 | 
			
		||||
  `success` tinyint(1) NOT NULL,
 | 
			
		||||
  `timeStamp` varchar(50) NOT NULL,
 | 
			
		||||
  `authType` varchar(25) NOT NULL,
 | 
			
		||||
  `servingNetworkName` varchar(50) NOT NULL,
 | 
			
		||||
  `authRemovalInd` tinyint(1) DEFAULT NULL
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Table structure for table `AuthenticationSubscription`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
CREATE TABLE `AuthenticationSubscription` (
 | 
			
		||||
  `ueid` varchar(20) NOT NULL,
 | 
			
		||||
  `authenticationMethod` varchar(25) NOT NULL,
 | 
			
		||||
  `encPermanentKey` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `protectionParameterId` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `sequenceNumber` json DEFAULT NULL,
 | 
			
		||||
  `authenticationManagementField` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `algorithmId` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `encOpcKey` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `encTopcKey` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `vectorGenerationInHss` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `n5gcAuthMethod` varchar(15) DEFAULT NULL,
 | 
			
		||||
  `rgAuthenticationInd` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `supi` varchar(20) DEFAULT NULL
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Dumping data for table `AuthenticationSubscription`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES
 | 
			
		||||
('208950000000031', '5G_AKA', '0C0A34601D4F07677303652C0462535B', '0C0A34601D4F07677303652C0462535B', '{\"sqn\": \"000000000020\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', '63bfa50ee6523365ff14c1f45f88737d', NULL, NULL, NULL, NULL, '208950000000031');
 | 
			
		||||
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Table structure for table `SdmSubscriptions`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
CREATE TABLE `SdmSubscriptions` (
 | 
			
		||||
  `ueid` varchar(15) NOT NULL,
 | 
			
		||||
  `subsId` int(10) UNSIGNED NOT NULL,
 | 
			
		||||
  `nfInstanceId` varchar(50) NOT NULL,
 | 
			
		||||
  `implicitUnsubscribe` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `expires` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `callbackReference` varchar(50) NOT NULL,
 | 
			
		||||
  `amfServiceName` json DEFAULT NULL,
 | 
			
		||||
  `monitoredResourceUris` json NOT NULL,
 | 
			
		||||
  `singleNssai` json DEFAULT NULL,
 | 
			
		||||
  `dnn` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `subscriptionId` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `plmnId` json DEFAULT NULL,
 | 
			
		||||
  `immediateReport` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `report` json DEFAULT NULL,
 | 
			
		||||
  `supportedFeatures` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `contextInfo` json DEFAULT NULL
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Table structure for table `SessionManagementSubscriptionData`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
CREATE TABLE `SessionManagementSubscriptionData` (
 | 
			
		||||
  `ueid` varchar(15) NOT NULL,
 | 
			
		||||
  `servingPlmnid` varchar(15) NOT NULL,
 | 
			
		||||
  `singleNssai` json NOT NULL,
 | 
			
		||||
  `dnnConfigurations` json DEFAULT NULL,
 | 
			
		||||
  `internalGroupIds` json DEFAULT NULL,
 | 
			
		||||
  `sharedVnGroupDataIds` json DEFAULT NULL,
 | 
			
		||||
  `sharedDnnConfigurationsId` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `odbPacketServices` json DEFAULT NULL,
 | 
			
		||||
  `traceData` json DEFAULT NULL,
 | 
			
		||||
  `sharedTraceDataId` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `expectedUeBehavioursList` json DEFAULT NULL,
 | 
			
		||||
  `suggestedPacketNumDlList` json DEFAULT NULL,
 | 
			
		||||
  `3gppChargingCharacteristics` varchar(50) DEFAULT NULL
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Table structure for table `SmfRegistrations`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
CREATE TABLE `SmfRegistrations` (
 | 
			
		||||
  `ueid` varchar(15) NOT NULL,
 | 
			
		||||
  `subpduSessionId` int(10) NOT NULL,
 | 
			
		||||
  `smfInstanceId` varchar(50) NOT NULL,
 | 
			
		||||
  `smfSetId` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `supportedFeatures` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `pduSessionId` int(10) NOT NULL,
 | 
			
		||||
  `singleNssai` json NOT NULL,
 | 
			
		||||
  `dnn` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `emergencyServices` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `pcscfRestorationCallbackUri` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `plmnId` json NOT NULL,
 | 
			
		||||
  `pgwFqdn` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `epdgInd` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `deregCallbackUri` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `registrationReason` json DEFAULT NULL,
 | 
			
		||||
  `registrationTime` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `contextInfo` json DEFAULT NULL
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Table structure for table `SmfSelectionSubscriptionData`
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
CREATE TABLE `SmfSelectionSubscriptionData` (
 | 
			
		||||
  `ueid` varchar(15) NOT NULL,
 | 
			
		||||
  `servingPlmnid` varchar(15) NOT NULL,
 | 
			
		||||
  `supportedFeatures` varchar(50) DEFAULT NULL,
 | 
			
		||||
  `subscribedSnssaiInfos` json DEFAULT NULL,
 | 
			
		||||
  `sharedSnssaiInfosId` varchar(50) DEFAULT NULL
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for dumped tables
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for table `AccessAndMobilitySubscriptionData`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `AccessAndMobilitySubscriptionData`
 | 
			
		||||
  ADD PRIMARY KEY (`ueid`,`servingPlmnid`) USING BTREE;
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for table `Amf3GppAccessRegistration`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `Amf3GppAccessRegistration`
 | 
			
		||||
  ADD PRIMARY KEY (`ueid`);
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for table `AuthenticationStatus`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `AuthenticationStatus`
 | 
			
		||||
  ADD PRIMARY KEY (`ueid`);
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for table `AuthenticationSubscription`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `AuthenticationSubscription`
 | 
			
		||||
  ADD PRIMARY KEY (`ueid`);
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for table `SdmSubscriptions`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `SdmSubscriptions`
 | 
			
		||||
  ADD PRIMARY KEY (`subsId`,`ueid`) USING BTREE;
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for table `SessionManagementSubscriptionData`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `SessionManagementSubscriptionData`
 | 
			
		||||
  ADD PRIMARY KEY (`ueid`,`servingPlmnid`) USING BTREE;
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for table `SmfRegistrations`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `SmfRegistrations`
 | 
			
		||||
  ADD PRIMARY KEY (`ueid`,`subpduSessionId`) USING BTREE;
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Indexes for table `SmfSelectionSubscriptionData`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `SmfSelectionSubscriptionData`
 | 
			
		||||
  ADD PRIMARY KEY (`ueid`,`servingPlmnid`) USING BTREE;
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- AUTO_INCREMENT for dumped tables
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- AUTO_INCREMENT for table `SdmSubscriptions`
 | 
			
		||||
--
 | 
			
		||||
ALTER TABLE `SdmSubscriptions`
 | 
			
		||||
  MODIFY `subsId` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
 | 
			
		||||
COMMIT;
 | 
			
		||||
 | 
			
		||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
 | 
			
		||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
 | 
			
		||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										298
									
								
								docs/oai-cn5g-and-ueransim/core-basic-nrf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										298
									
								
								docs/oai-cn5g-and-ueransim/core-basic-nrf.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,298 @@
 | 
			
		||||
version: '3.8'
 | 
			
		||||
services:
 | 
			
		||||
    mysql:
 | 
			
		||||
        container_name: "mysql"
 | 
			
		||||
        image: mysql:5.7
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./bbdd/oai_db2.sql:/docker-entrypoint-initdb.d/oai_db.sql
 | 
			
		||||
            - ./healthcheck/mysql-healthcheck2.sh:/tmp/mysql-healthcheck.sh
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - MYSQL_DATABASE=oai_db
 | 
			
		||||
            - MYSQL_USER=test
 | 
			
		||||
            - MYSQL_PASSWORD=test
 | 
			
		||||
            - MYSQL_ROOT_PASSWORD=linux
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/tmp/mysql-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.131
 | 
			
		||||
    oai-udr:
 | 
			
		||||
        container_name: oai-udr
 | 
			
		||||
        image: rdefosseoai/oai-udr:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - UDR_INTERFACE_NAME_FOR_NUDR=eth0
 | 
			
		||||
            - UDR_INTERFACE_PORT_FOR_NUDR=80
 | 
			
		||||
            - UDR_INTERFACE_HTTP2_PORT_FOR_NUDR=8080
 | 
			
		||||
            - UDR_API_VERSION=v1
 | 
			
		||||
            - MYSQL_IPV4_ADDRESS=mysql
 | 
			
		||||
            - MYSQL_USER=test
 | 
			
		||||
            - MYSQL_PASS=test
 | 
			
		||||
            - MYSQL_DB=oai_db
 | 
			
		||||
            - WAIT_MYSQL=120
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - mysql
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.136
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/udr-healthcheck.sh:/openair-udr/bin/udr-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-udr/bin/udr-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-udm:
 | 
			
		||||
        container_name: oai-udm
 | 
			
		||||
        image: rdefosseoai/oai-udm:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - UDM_NAME=OAI_UDM
 | 
			
		||||
            - SBI_IF_NAME=eth0
 | 
			
		||||
            - SBI_PORT=80
 | 
			
		||||
            - UDM_VERSION_NB=v1
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
            - UDR_IP_ADDRESS=0.0.0.0
 | 
			
		||||
            - UDR_PORT=80
 | 
			
		||||
            - UDR_VERSION_NB=v1
 | 
			
		||||
            - UDR_FQDN=oai-udr
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-udr
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.137
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/udm-healthcheck.sh:/openair-udm/bin/udm-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-udm/bin/udm-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-ausf:
 | 
			
		||||
        container_name: oai-ausf
 | 
			
		||||
        image: rdefosseoai/oai-ausf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE_ID=0
 | 
			
		||||
            - PID_DIR=/var/run
 | 
			
		||||
            - AUSF_NAME=OAI_AUSF
 | 
			
		||||
            - SBI_IF_NAME=eth0
 | 
			
		||||
            - SBI_PORT=80
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
            - UDM_IP_ADDRESS=0.0.0.0
 | 
			
		||||
            - UDM_PORT=80
 | 
			
		||||
            - UDM_VERSION_NB=v1
 | 
			
		||||
            - UDM_FQDN=oai-udm
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-udm
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.138
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/ausf-healthcheck.sh:/openair-ausf/bin/ausf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-ausf/bin/ausf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-nrf:
 | 
			
		||||
        container_name: "oai-nrf"
 | 
			
		||||
        image: rdefosseoai/oai-nrf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - NRF_INTERFACE_NAME_FOR_SBI=eth0
 | 
			
		||||
            - NRF_INTERFACE_PORT_FOR_SBI=80
 | 
			
		||||
            - NRF_INTERFACE_HTTP2_PORT_FOR_SBI=9090
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.130
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/nrf-healthcheck.sh:/openair-nrf/bin/nrf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-nrf/bin/nrf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-amf:
 | 
			
		||||
        container_name: "oai-amf"
 | 
			
		||||
        image: rdefosseoai/oai-amf:latest
 | 
			
		||||
        entrypoint: tail
 | 
			
		||||
        command: ["-f", "/dev/null"]
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - MCC=208
 | 
			
		||||
            - MNC=95
 | 
			
		||||
            - REGION_ID=128
 | 
			
		||||
            - AMF_SET_ID=1
 | 
			
		||||
            - SERVED_GUAMI_MCC_0=208
 | 
			
		||||
            - SERVED_GUAMI_MNC_0=95
 | 
			
		||||
            - SERVED_GUAMI_REGION_ID_0=128
 | 
			
		||||
            - SERVED_GUAMI_AMF_SET_ID_0=1
 | 
			
		||||
            - SERVED_GUAMI_MCC_1=460
 | 
			
		||||
            - SERVED_GUAMI_MNC_1=11
 | 
			
		||||
            - SERVED_GUAMI_REGION_ID_1=10
 | 
			
		||||
            - SERVED_GUAMI_AMF_SET_ID_1=1
 | 
			
		||||
            - PLMN_SUPPORT_MCC=208
 | 
			
		||||
            - PLMN_SUPPORT_MNC=95
 | 
			
		||||
            - PLMN_SUPPORT_TAC=0xa000
 | 
			
		||||
            - SST_0=222
 | 
			
		||||
            - SD_0=123
 | 
			
		||||
            - SST_1=1
 | 
			
		||||
            - SD_1=12
 | 
			
		||||
            - AMF_INTERFACE_NAME_FOR_NGAP=eth0
 | 
			
		||||
            - AMF_INTERFACE_NAME_FOR_N11=eth0
 | 
			
		||||
            - SMF_INSTANCE_ID_0=1
 | 
			
		||||
            - SMF_FQDN_0=oai-smf
 | 
			
		||||
            - SMF_IPV4_ADDR_0=0.0.0.0
 | 
			
		||||
            - SMF_HTTP_VERSION_0=v1
 | 
			
		||||
            - SELECTED_0=true
 | 
			
		||||
            - SMF_INSTANCE_ID_1=2
 | 
			
		||||
            - SMF_FQDN_1=oai-smf
 | 
			
		||||
            - SMF_IPV4_ADDR_1=0.0.0.0
 | 
			
		||||
            - SMF_HTTP_VERSION_1=v1
 | 
			
		||||
            - SELECTED_1=false
 | 
			
		||||
            - MYSQL_SERVER=mysql
 | 
			
		||||
            - MYSQL_USER=root
 | 
			
		||||
            - MYSQL_PASS=linux
 | 
			
		||||
            - MYSQL_DB=oai_db
 | 
			
		||||
            - OPERATOR_KEY=63bfa50ee6523365ff14c1f45f88737d
 | 
			
		||||
            - NRF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - NRF_PORT=80
 | 
			
		||||
            - NF_REGISTRATION=yes
 | 
			
		||||
            - SMF_SELECTION=yes
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
            - EXTERNAL_AUSF=yes
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - NRF_FQDN=oai-nrf
 | 
			
		||||
            - AUSF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - AUSF_PORT=80
 | 
			
		||||
            - AUSF_API_VERSION=v1
 | 
			
		||||
            - AUSF_FQDN=oai-ausf
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - mysql
 | 
			
		||||
            - oai-nrf
 | 
			
		||||
            - oai-ausf
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/amf-healthcheck.sh:/openair-amf/bin/amf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-amf/bin/amf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 15s
 | 
			
		||||
            retries: 5
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.132
 | 
			
		||||
    oai-smf:
 | 
			
		||||
        container_name: "oai-smf"
 | 
			
		||||
        image: rdefosseoai/oai-smf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - SMF_INTERFACE_NAME_FOR_N4=eth0
 | 
			
		||||
            - SMF_INTERFACE_NAME_FOR_SBI=eth0
 | 
			
		||||
            - SMF_INTERFACE_PORT_FOR_SBI=80
 | 
			
		||||
            - SMF_INTERFACE_HTTP2_PORT_FOR_SBI=9090
 | 
			
		||||
            - SMF_API_VERSION=v1
 | 
			
		||||
            - DEFAULT_DNS_IPV4_ADDRESS=8.8.8.8
 | 
			
		||||
            - DEFAULT_DNS_SEC_IPV4_ADDRESS=8.8.8.8
 | 
			
		||||
            - AMF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - AMF_PORT=80
 | 
			
		||||
            - AMF_API_VERSION=v1
 | 
			
		||||
            - AMF_FQDN=oai-amf
 | 
			
		||||
            - UDM_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - UDM_PORT=80
 | 
			
		||||
            - UDM_API_VERSION=v1
 | 
			
		||||
            - UDM_FQDN=oai-udm
 | 
			
		||||
            - UPF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - UPF_FQDN_0=oai-spgwu
 | 
			
		||||
            - NRF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - NRF_PORT=80
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - NRF_FQDN=oai-nrf
 | 
			
		||||
            - REGISTER_NRF=yes
 | 
			
		||||
            - DISCOVER_UPF=yes
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-nrf
 | 
			
		||||
            - oai-amf
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/smf-healthcheck.sh:/openair-smf/bin/smf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-smf/bin/smf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.133
 | 
			
		||||
    oai-spgwu:
 | 
			
		||||
        container_name: "oai-spgwu"
 | 
			
		||||
        image: rdefosseoai/oai-spgwu-tiny:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP=eth0
 | 
			
		||||
            - SGW_INTERFACE_NAME_FOR_SX=eth0
 | 
			
		||||
            - PGW_INTERFACE_NAME_FOR_SGI=eth0
 | 
			
		||||
            - NETWORK_UE_NAT_OPTION=yes
 | 
			
		||||
            - NETWORK_UE_IP=12.1.1.0/24
 | 
			
		||||
            - SPGWC0_IP_ADDRESS=172.25.0.8
 | 
			
		||||
            - BYPASS_UL_PFCP_RULES=no
 | 
			
		||||
            - MCC=208
 | 
			
		||||
            - MNC=95
 | 
			
		||||
            - MNC03=095
 | 
			
		||||
            - TAC=40960
 | 
			
		||||
            - GW_ID=1
 | 
			
		||||
            - REALM=openairinterface.org
 | 
			
		||||
            - ENABLE_5G_FEATURES=yes
 | 
			
		||||
            - REGISTER_NRF=yes
 | 
			
		||||
            - USE_FQDN_NRF=yes
 | 
			
		||||
            - UPF_FQDN_5G=oai-spgwu
 | 
			
		||||
            - NRF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - NRF_PORT=80
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - NRF_FQDN=oai-nrf
 | 
			
		||||
            - NSSAI_SST_0=222
 | 
			
		||||
            - NSSAI_SD_0=123
 | 
			
		||||
            - DNN_0=default
 | 
			
		||||
        #depends_on:
 | 
			
		||||
        #    - oai-nrf
 | 
			
		||||
        #    - oai-smf
 | 
			
		||||
        cap_add:
 | 
			
		||||
            - NET_ADMIN
 | 
			
		||||
            - SYS_ADMIN
 | 
			
		||||
        cap_drop:
 | 
			
		||||
            - ALL
 | 
			
		||||
        privileged: true
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/spgwu-healthcheck.sh:/openair-spgwu-tiny/bin/spgwu-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-spgwu-tiny/bin/spgwu-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.134
 | 
			
		||||
#networks:
 | 
			
		||||
#    public_net:
 | 
			
		||||
#        driver: bridge
 | 
			
		||||
#        name: demo-oai-public-net
 | 
			
		||||
#        ipam:
 | 
			
		||||
#            config:
 | 
			
		||||
#                - subnet: 192.168.70.128/26
 | 
			
		||||
#        driver_opts:
 | 
			
		||||
#            com.docker.network.bridge.name: "demo-oai"
 | 
			
		||||
							
								
								
									
										214
									
								
								docs/oai-cn5g-and-ueransim/core-mini-nrf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										214
									
								
								docs/oai-cn5g-and-ueransim/core-mini-nrf.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,214 @@
 | 
			
		||||
version: '3.8'
 | 
			
		||||
services:
 | 
			
		||||
    mysql:
 | 
			
		||||
        container_name: "mysql"
 | 
			
		||||
        image: mysql:5.7
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./bbdd/oai_db1.sql:/docker-entrypoint-initdb.d/oai_db.sql
 | 
			
		||||
            - ./healthcheck/mysql-healthcheck1.sh:/tmp/mysql-healthcheck.sh
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - MYSQL_DATABASE=oai_db
 | 
			
		||||
            - MYSQL_USER=test
 | 
			
		||||
            - MYSQL_PASSWORD=test
 | 
			
		||||
            - MYSQL_ROOT_PASSWORD=linux
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/tmp/mysql-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.131
 | 
			
		||||
    oai-nrf:
 | 
			
		||||
        container_name: "oai-nrf"
 | 
			
		||||
        image: rdefosseoai/oai-nrf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - NRF_INTERFACE_NAME_FOR_SBI=eth0
 | 
			
		||||
            - NRF_INTERFACE_PORT_FOR_SBI=80
 | 
			
		||||
            - NRF_INTERFACE_HTTP2_PORT_FOR_SBI=9090
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.130
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/nrf-healthcheck.sh:/openair-nrf/bin/nrf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-nrf/bin/nrf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
    oai-amf:
 | 
			
		||||
        container_name: "oai-amf"
 | 
			
		||||
        image: rdefosseoai/oai-amf:latest
 | 
			
		||||
        entrypoint: tail
 | 
			
		||||
        command: ["-f", "/dev/null"]
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - MCC=208
 | 
			
		||||
            - MNC=95
 | 
			
		||||
            - REGION_ID=128
 | 
			
		||||
            - AMF_SET_ID=1
 | 
			
		||||
            - SERVED_GUAMI_MCC_0=208
 | 
			
		||||
            - SERVED_GUAMI_MNC_0=95
 | 
			
		||||
            - SERVED_GUAMI_REGION_ID_0=128
 | 
			
		||||
            - SERVED_GUAMI_AMF_SET_ID_0=1
 | 
			
		||||
            - SERVED_GUAMI_MCC_1=460
 | 
			
		||||
            - SERVED_GUAMI_MNC_1=11
 | 
			
		||||
            - SERVED_GUAMI_REGION_ID_1=10
 | 
			
		||||
            - SERVED_GUAMI_AMF_SET_ID_1=1
 | 
			
		||||
            - PLMN_SUPPORT_MCC=208
 | 
			
		||||
            - PLMN_SUPPORT_MNC=95
 | 
			
		||||
            - PLMN_SUPPORT_TAC=0xa000
 | 
			
		||||
            - SST_0=222
 | 
			
		||||
            - SD_0=123
 | 
			
		||||
            - SST_1=1
 | 
			
		||||
            - SD_1=12
 | 
			
		||||
            - AMF_INTERFACE_NAME_FOR_NGAP=eth0
 | 
			
		||||
            - AMF_INTERFACE_NAME_FOR_N11=eth0
 | 
			
		||||
            - SMF_INSTANCE_ID_0=1
 | 
			
		||||
            - SMF_FQDN_0=oai-smf
 | 
			
		||||
            - SMF_IPV4_ADDR_0=0.0.0.0
 | 
			
		||||
            - SMF_HTTP_VERSION_0=v1
 | 
			
		||||
            - SELECTED_0=true
 | 
			
		||||
            - SMF_INSTANCE_ID_1=2
 | 
			
		||||
            - SMF_FQDN_1=oai-smf
 | 
			
		||||
            - SMF_IPV4_ADDR_1=0.0.0.0
 | 
			
		||||
            - SMF_HTTP_VERSION_1=v1
 | 
			
		||||
            - SELECTED_1=false
 | 
			
		||||
            - MYSQL_SERVER=mysql
 | 
			
		||||
            - MYSQL_USER=root
 | 
			
		||||
            - MYSQL_PASS=linux
 | 
			
		||||
            - MYSQL_DB=oai_db
 | 
			
		||||
            - OPERATOR_KEY=63bfa50ee6523365ff14c1f45f88737d
 | 
			
		||||
            - NRF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - NRF_PORT=80
 | 
			
		||||
            - NF_REGISTRATION=yes
 | 
			
		||||
            - SMF_SELECTION=yes
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
            - EXTERNAL_AUSF=no
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - NRF_FQDN=oai-nrf
 | 
			
		||||
            - AUSF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - AUSF_PORT=80
 | 
			
		||||
            - AUSF_API_VERSION=v1
 | 
			
		||||
            - AUSF_FQDN=localhost
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - mysql
 | 
			
		||||
            - oai-nrf
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/amf-healthcheck.sh:/openair-amf/bin/amf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-amf/bin/amf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 15s
 | 
			
		||||
            retries: 5
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.132
 | 
			
		||||
    oai-smf:
 | 
			
		||||
        container_name: "oai-smf"
 | 
			
		||||
        image: rdefosseoai/oai-smf:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - INSTANCE=0
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - SMF_INTERFACE_NAME_FOR_N4=eth0
 | 
			
		||||
            - SMF_INTERFACE_NAME_FOR_SBI=eth0
 | 
			
		||||
            - SMF_INTERFACE_PORT_FOR_SBI=80
 | 
			
		||||
            - SMF_INTERFACE_HTTP2_PORT_FOR_SBI=9090
 | 
			
		||||
            - SMF_API_VERSION=v1
 | 
			
		||||
            - DEFAULT_DNS_IPV4_ADDRESS=192.168.18.129
 | 
			
		||||
            - DEFAULT_DNS_SEC_IPV4_ADDRESS=192.168.18.129
 | 
			
		||||
            - AMF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - AMF_PORT=80
 | 
			
		||||
            - AMF_API_VERSION=v1
 | 
			
		||||
            - AMF_FQDN=oai-amf
 | 
			
		||||
            - UDM_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - UDM_PORT=80
 | 
			
		||||
            - UDM_API_VERSION=v2
 | 
			
		||||
            - UDM_FQDN=oai-udm
 | 
			
		||||
            - UPF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - UPF_FQDN_0=oai-spgwu
 | 
			
		||||
            - NRF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - NRF_PORT=80
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - NRF_FQDN=oai-nrf
 | 
			
		||||
            - REGISTER_NRF=yes
 | 
			
		||||
            - DISCOVER_UPF=yes
 | 
			
		||||
            - USE_FQDN_DNS=yes
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-nrf
 | 
			
		||||
            - oai-amf
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/smf-healthcheck.sh:/openair-smf/bin/smf-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-smf/bin/smf-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.133
 | 
			
		||||
    oai-spgwu:
 | 
			
		||||
        container_name: "oai-spgwu"
 | 
			
		||||
        image: rdefosseoai/oai-spgwu-tiny:latest
 | 
			
		||||
        environment:
 | 
			
		||||
            - TZ=Europe/Paris
 | 
			
		||||
            - PID_DIRECTORY=/var/run
 | 
			
		||||
            - SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP=eth0
 | 
			
		||||
            - SGW_INTERFACE_NAME_FOR_SX=eth0
 | 
			
		||||
            - PGW_INTERFACE_NAME_FOR_SGI=eth0
 | 
			
		||||
            - NETWORK_UE_NAT_OPTION=yes
 | 
			
		||||
            - NETWORK_UE_IP=12.1.1.0/24
 | 
			
		||||
            - SPGWC0_IP_ADDRESS=0.0.0.0
 | 
			
		||||
            - BYPASS_UL_PFCP_RULES=no
 | 
			
		||||
            - MCC=208
 | 
			
		||||
            - MNC=95
 | 
			
		||||
            - MNC03=095
 | 
			
		||||
            - TAC=40960
 | 
			
		||||
            - GW_ID=1
 | 
			
		||||
            - REALM=openairinterface.org
 | 
			
		||||
            - ENABLE_5G_FEATURES=yes
 | 
			
		||||
            - REGISTER_NRF=yes
 | 
			
		||||
            - USE_FQDN_NRF=yes
 | 
			
		||||
            - UPF_FQDN_5G=oai-spgwu
 | 
			
		||||
            - NRF_IPV4_ADDRESS=0.0.0.0
 | 
			
		||||
            - NRF_PORT=80
 | 
			
		||||
            - NRF_API_VERSION=v1
 | 
			
		||||
            - NRF_FQDN=oai-nrf
 | 
			
		||||
            - NSSAI_SST_0=222
 | 
			
		||||
            - NSSAI_SD_0=123
 | 
			
		||||
            - DNN_0=default
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - oai-nrf
 | 
			
		||||
            - oai-smf
 | 
			
		||||
        cap_add:
 | 
			
		||||
            - NET_ADMIN
 | 
			
		||||
            - SYS_ADMIN
 | 
			
		||||
        cap_drop:
 | 
			
		||||
            - ALL
 | 
			
		||||
        privileged: true
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./healthcheck/spgwu-healthcheck.sh:/openair-spgwu-tiny/bin/spgwu-healthcheck.sh
 | 
			
		||||
        healthcheck:
 | 
			
		||||
            test: /bin/bash -c "/openair-spgwu-tiny/bin/spgwu-healthcheck.sh"
 | 
			
		||||
            interval: 10s
 | 
			
		||||
            timeout: 5s
 | 
			
		||||
            retries: 5
 | 
			
		||||
#        networks:
 | 
			
		||||
#            public_net:
 | 
			
		||||
#                ipv4_address: 192.168.70.134
 | 
			
		||||
#networks:
 | 
			
		||||
#    public_net:
 | 
			
		||||
#        driver: bridge
 | 
			
		||||
#        name: demo-oai-public-net
 | 
			
		||||
#        ipam:
 | 
			
		||||
#            config:
 | 
			
		||||
#                - subnet: 192.168.70.128/26
 | 
			
		||||
#        driver_opts:
 | 
			
		||||
#            com.docker.network.bridge.name: "demo-oai"
 | 
			
		||||
							
								
								
									
										33
									
								
								docs/oai-cn5g-and-ueransim/gnb1.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								docs/oai-cn5g-and-ueransim/gnb1.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
version: '3'
 | 
			
		||||
services: 
 | 
			
		||||
  gnb1:
 | 
			
		||||
    image: openverso/ueransim:3.2.2
 | 
			
		||||
    container_name: gnb1
 | 
			
		||||
    command: 
 | 
			
		||||
      - gnb
 | 
			
		||||
    environment:
 | 
			
		||||
      AMF_HOSTNAME: oai-amf
 | 
			
		||||
      GNB_HOSTNAME: gnb1
 | 
			
		||||
      MCC: '208'
 | 
			
		||||
      MNC: '95'
 | 
			
		||||
      TAC: '0xa000'
 | 
			
		||||
      SST: '222'
 | 
			
		||||
      SD: '123'
 | 
			
		||||
 | 
			
		||||
  ue1:
 | 
			
		||||
    image: openverso/ueransim:3.2.2
 | 
			
		||||
    command: ['ue','-n','1']
 | 
			
		||||
    cap_add:
 | 
			
		||||
      - all
 | 
			
		||||
    privileged: true
 | 
			
		||||
    environment:
 | 
			
		||||
      GNB_HOSTNAME: gnb1
 | 
			
		||||
      APN: default
 | 
			
		||||
      MSISDN: '0000000031'
 | 
			
		||||
      MCC: '208'
 | 
			
		||||
      MNC: '95'
 | 
			
		||||
      KEY: '0C0A34601D4F07677303652C0462535B'
 | 
			
		||||
      OP_TYPE: OPC
 | 
			
		||||
      OP: '63bfa50ee6523365ff14c1f45f88737d'
 | 
			
		||||
      SST: '222'
 | 
			
		||||
      SD: '123'
 | 
			
		||||
							
								
								
									
										57
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/amf-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										57
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/amf-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,57 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
AMF_PORT_FOR_NGAP=38412
 | 
			
		||||
AMF_PORT_FOR_N11_HTTP=80
 | 
			
		||||
AMF_IP_NGAP_INTERFACE=$(ifconfig $AMF_INTERFACE_NAME_FOR_NGAP | grep inet | awk {'print $2'})
 | 
			
		||||
AMF_IP_N11_INTERFACE=$(ifconfig $AMF_INTERFACE_NAME_FOR_N11 | grep inet | awk {'print $2'})
 | 
			
		||||
N2_PORT_STATUS=$(netstat -Snpl | grep -o "$AMF_IP_NGAP_INTERFACE:$AMF_PORT_FOR_NGAP")
 | 
			
		||||
N11_PORT_STATUS=$(netstat -tnpl | grep -o "$AMF_IP_N11_INTERFACE:$AMF_PORT_FOR_N11_HTTP")
 | 
			
		||||
#Check if entrypoint properly configured the conf file and no parameter is unset (optional)
 | 
			
		||||
NB_UNREPLACED_AT=`cat /openair-amf/etc/*.conf | grep -v contact@openairinterface.org | grep -c @ || true`
 | 
			
		||||
 | 
			
		||||
if [ $NB_UNREPLACED_AT -ne 0 ]; then
 | 
			
		||||
	STATUS=1
 | 
			
		||||
	echo "Healthcheck error: configuration file is not configured properly"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $N2_PORT_STATUS ]]; then
 | 
			
		||||
	STATUS=1
 | 
			
		||||
	echo "Healthcheck error: N2 SCTP port $AMF_PORT_FOR_NGAP is not listening"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $N11_PORT_STATUS ]]; then
 | 
			
		||||
	STATUS=1
 | 
			
		||||
	echo "Healthcheck error: N11/SBI TCP/HTTP port $AMF_PORT_FOR_N11_HTTP is not listening"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
#host="${MYSQL_SERVER}"
 | 
			
		||||
#user="${MYSQL_USER:-root}"
 | 
			
		||||
#export MYSQL_PWD="${MYSQL_PASS}"
 | 
			
		||||
 | 
			
		||||
#args=(
 | 
			
		||||
#	-h"$host"
 | 
			
		||||
#	-u"$user"
 | 
			
		||||
#	--silent
 | 
			
		||||
#)
 | 
			
		||||
 | 
			
		||||
#if ! command -v mysql &> /dev/null; then
 | 
			
		||||
#	echo "Installing mysql command"
 | 
			
		||||
#	apt update
 | 
			
		||||
#	apt-get -y install mysql-client
 | 
			
		||||
#else
 | 
			
		||||
#	if select="$(echo 'SELECT 1' | mysql "${args[@]}")" && [ "$select" = '1' ]; then
 | 
			
		||||
#		database_check=$(mysql -h$host -u$user -D oai_db --silent -e "SELECT * FROM users;")
 | 
			
		||||
#		if [[ -z $database_check ]]; then
 | 
			
		||||
#			echo "Healthcheck error: oai_db not populated"
 | 
			
		||||
#			STATUS=1
 | 
			
		||||
#		fi
 | 
			
		||||
#		STATUS=0
 | 
			
		||||
#	else
 | 
			
		||||
#		echo "Healthcheck error: Mysql port inactive"
 | 
			
		||||
#		STATUS=1
 | 
			
		||||
#	fi
 | 
			
		||||
#fi
 | 
			
		||||
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/ausf-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/ausf-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
AUSF_IP_SBI_INTERFACE=$(ifconfig $SBI_IF_NAME | grep inet | awk {'print $2'})
 | 
			
		||||
AUSF_SBI_PORT_STATUS=$(netstat -tnpl | grep -o "$AUSF_IP_SBI_INTERFACE:$SBI_PORT")
 | 
			
		||||
#Check if entrypoint properly configured the conf file and no parameter is unset(optional)
 | 
			
		||||
NB_UNREPLACED_AT=`cat /openair-ausf/etc/*.conf | grep -v contact@openairinterface.org | grep -c @ || true`
 | 
			
		||||
 | 
			
		||||
if [ $NB_UNREPLACED_AT -ne 0 ]; then
 | 
			
		||||
        STATUS=1
 | 
			
		||||
        echo "Healthcheck error: UNHEALTHY configuration file is not configured properly"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $AUSF_SBI_PORT_STATUS ]]; then
 | 
			
		||||
        STATUS=1
 | 
			
		||||
        echo "Healthcheck error: UNHEALTHY SBI TCP/HTTP port $SBI_PORT is not listening."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										46
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/mysql-healthcheck1.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										46
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/mysql-healthcheck1.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,46 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
if [ "$MYSQL_ROOT_PASSWORD" ] && [ -z "$MYSQL_USER" ] && [ -z "$MYSQL_PASSWORD" ]; then
 | 
			
		||||
	echo >&2 'Healthcheck error: cannot determine root password (and MYSQL_USER and MYSQL_PASSWORD were not set)'
 | 
			
		||||
	exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
host="$(hostname --ip-address || echo '127.0.0.1')"
 | 
			
		||||
user="${MYSQL_USER:-root}"
 | 
			
		||||
export MYSQL_PWD="${MYSQL_PASSWORD:-$MYSQL_ROOT_PASSWORD}"
 | 
			
		||||
 | 
			
		||||
args=(
 | 
			
		||||
	# force mysql to not use the local "mysqld.sock" (test "external" connectivity)
 | 
			
		||||
	-h"$host"
 | 
			
		||||
	-u"$user"
 | 
			
		||||
	--silent
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
if command -v mysqladmin &> /dev/null; then
 | 
			
		||||
	if mysqladmin "${args[@]}" ping > /dev/null; then
 | 
			
		||||
		database_check=$(mysql -u$user -D oai_db --silent -e "SELECT * FROM users;")
 | 
			
		||||
		if [[ -z $database_check ]]; then
 | 
			
		||||
			echo "Healthcheck error: oai_db not populated"
 | 
			
		||||
			STATUS=1
 | 
			
		||||
		fi
 | 
			
		||||
		STATUS=0
 | 
			
		||||
	else
 | 
			
		||||
		echo "Healthcheck error: Mysql port inactive"
 | 
			
		||||
		STATUS=1
 | 
			
		||||
	fi
 | 
			
		||||
else
 | 
			
		||||
	if select="$(echo 'SELECT 1' | mysql "${args[@]}")" && [ "$select" = '1' ]; then
 | 
			
		||||
		database_check=$(mysql -u$user -D oai_db --silent -e "SELECT * FROM users;")
 | 
			
		||||
		if [[ -z $database_check ]]; then
 | 
			
		||||
			echo "Healthcheck error: oai_db not populated"
 | 
			
		||||
			STATUS=1
 | 
			
		||||
		fi
 | 
			
		||||
		STATUS=0
 | 
			
		||||
	else
 | 
			
		||||
		echo "Healthcheck error: Mysql port inactive"
 | 
			
		||||
		STATUS=1
 | 
			
		||||
	fi
 | 
			
		||||
fi
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										46
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/mysql-healthcheck2.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										46
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/mysql-healthcheck2.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,46 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
if [ "$MYSQL_ROOT_PASSWORD" ] && [ -z "$MYSQL_USER" ] && [ -z "$MYSQL_PASSWORD" ]; then
 | 
			
		||||
	echo >&2 'Healthcheck error: cannot determine root password (and MYSQL_USER and MYSQL_PASSWORD were not set)'
 | 
			
		||||
	exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
host="$(hostname --ip-address || echo '127.0.0.1')"
 | 
			
		||||
user="${MYSQL_USER:-root}"
 | 
			
		||||
export MYSQL_PWD="${MYSQL_PASSWORD:-$MYSQL_ROOT_PASSWORD}"
 | 
			
		||||
 | 
			
		||||
args=(
 | 
			
		||||
	# force mysql to not use the local "mysqld.sock" (test "external" connectivity)
 | 
			
		||||
	-h"$host"
 | 
			
		||||
	-u"$user"
 | 
			
		||||
	--silent
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
if command -v mysqladmin &> /dev/null; then
 | 
			
		||||
	if mysqladmin "${args[@]}" ping > /dev/null; then
 | 
			
		||||
		database_check=$(mysql -u$user -D oai_db --silent -e "SELECT * FROM AuthenticationSubscription;")
 | 
			
		||||
		if [[ -z $database_check ]]; then
 | 
			
		||||
			echo "Healthcheck error: oai_db not populated"
 | 
			
		||||
			STATUS=1
 | 
			
		||||
		fi
 | 
			
		||||
		STATUS=0
 | 
			
		||||
	else
 | 
			
		||||
		echo "Healthcheck error: Mysql port inactive"
 | 
			
		||||
		STATUS=1
 | 
			
		||||
	fi
 | 
			
		||||
else
 | 
			
		||||
	if select="$(echo 'SELECT 1' | mysql "${args[@]}")" && [ "$select" = '1' ]; then
 | 
			
		||||
		database_check=$(mysql -u$user -D oai_db --silent -e "SELECT * FROM AuthenticationSubscription;")
 | 
			
		||||
		if [[ -z $database_check ]]; then
 | 
			
		||||
			echo "Healthcheck error: oai_db not populated"
 | 
			
		||||
			STATUS=1
 | 
			
		||||
		fi
 | 
			
		||||
		STATUS=0
 | 
			
		||||
	else
 | 
			
		||||
		echo "Healthcheck error: Mysql port inactive"
 | 
			
		||||
		STATUS=1
 | 
			
		||||
	fi
 | 
			
		||||
fi
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/nrf-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/nrf-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
NRF_IP_SBI_INTERFACE=$(ifconfig $NRF_INTERFACE_NAME_FOR_SBI | grep inet | awk {'print $2'})
 | 
			
		||||
NRF_SBI_PORT_STATUS=$(netstat -tnpl | grep -o "$NRF_IP_SBI_INTERFACE:$NRF_INTERFACE_PORT_FOR_SBI")
 | 
			
		||||
#Check if entrypoint properly configured the conf file and no parameter is unset(optional)
 | 
			
		||||
NB_UNREPLACED_AT=`cat /openair-nrf/etc/*.conf | grep -v contact@openairinterface.org | grep -c @ || true`
 | 
			
		||||
 | 
			
		||||
if [ $NB_UNREPLACED_AT -ne 0 ]; then
 | 
			
		||||
	STATUS=1
 | 
			
		||||
	echo "Healthcheck error: UNHEALTHY configuration file is not configured properly"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $NRF_SBI_PORT_STATUS ]]; then
 | 
			
		||||
	STATUS=1
 | 
			
		||||
	echo "Healthcheck error: UNHEALTHY SBI TCP/HTTP port $NRF_INTERFACE_PORT_FOR_SBI is not listening."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/smf-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/smf-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
SMF_IP_SBI_INTERFACE=$(ifconfig $SMF_INTERFACE_NAME_FOR_SBI | grep inet | awk {'print $2'})
 | 
			
		||||
#Check if entrypoint properly configured the conf file and no parameter is unset(optional)
 | 
			
		||||
SMF_SBI_PORT_STATUS=$(netstat -tnpl | grep -o "$SMF_IP_SBI_INTERFACE:$SMF_INTERFACE_PORT_FOR_SBI")
 | 
			
		||||
NB_UNREPLACED_AT=`cat /openair-smf/etc/*.conf | grep -v contact@openairinterface.org | grep -c @ || true`
 | 
			
		||||
 | 
			
		||||
if [ $NB_UNREPLACED_AT -ne 0 ]; then
 | 
			
		||||
	STATUS=-1
 | 
			
		||||
	echo "Healthcheck error: UNHEALTHY configuration file is not configured properly"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $SMF_SBI_PORT_STATUS ]]; then
 | 
			
		||||
	STATUS=-1
 | 
			
		||||
	echo "Healthcheck error: UNHEALTHY SBI TCP/HTTP port $SMF_INTERFACE_PORT_FOR_SBI is not listening."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										28
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/spgwu-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										28
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/spgwu-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
SGW_PORT_FOR_S1U_S12_S4_UP=2152
 | 
			
		||||
SGW_PORT_FOR_SX=8805
 | 
			
		||||
SGW_IP_S1U_INTERFACE=$(ifconfig $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP | grep inet | awk {'print $2'})
 | 
			
		||||
SGW_IP_SX_INTERFACE=$(ifconfig $SGW_INTERFACE_NAME_FOR_SX | grep inet | awk {'print $2'})
 | 
			
		||||
S1U_S12_S4_UP_PORT_STATUS=$(netstat -unpl | grep -o "$SGW_IP_S1U_INTERFACE:$SGW_PORT_FOR_S1U_S12_S4_UP")
 | 
			
		||||
SX_PORT_STATUS=$(netstat -unpl | grep -o "$SGW_IP_SX_INTERFACE:$SGW_PORT_FOR_SX")
 | 
			
		||||
#Check if entrypoint properly configured the conf file and no parameter is unset (optional)
 | 
			
		||||
NB_UNREPLACED_AT=`cat /openair-spgwu/etc/*.conf | grep -v contact@openairinterface.org | grep -c @ || true`
 | 
			
		||||
if [ $NB_UNREPLACED_AT -ne 0 ]; then
 | 
			
		||||
	STATUS=1
 | 
			
		||||
	echo "Healthcheck error: UNHEALTHY configuration file is not configured properly"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $S1U_S12_S4_UP_PORT_STATUS ]]; then
 | 
			
		||||
	STATUS=1
 | 
			
		||||
	echo "Healthcheck error: UNHEALTHY S1U port $SGW_PORT_FOR_S1U_S12_S4_UP is not listening."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $SX_PORT_STATUS ]]; then
 | 
			
		||||
	STATUS=1
 | 
			
		||||
	echo "Healthcheck error: UNHEALTHY SX port $SGW_PORT_FOR_SX is not listening."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/udm-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/udm-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
UDM_IP_SBI_INTERFACE=$(ifconfig $SBI_IF_NAME | grep inet | awk {'print $2'})
 | 
			
		||||
UDM_SBI_PORT_STATUS=$(netstat -tnpl | grep -o "$UDM_IP_SBI_INTERFACE:$SBI_PORT")
 | 
			
		||||
#Check if entrypoint properly configured the conf file and no parameter is unset(optional)
 | 
			
		||||
NB_UNREPLACED_AT=`cat /openair-udm/etc/*.conf | grep -v contact@openairinterface.org | grep -c @ || true`
 | 
			
		||||
 | 
			
		||||
if [ $NB_UNREPLACED_AT -ne 0 ]; then
 | 
			
		||||
        STATUS=1
 | 
			
		||||
        echo "Healthcheck error: UNHEALTHY configuration file is not configured properly"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $UDM_SBI_PORT_STATUS ]]; then
 | 
			
		||||
        STATUS=1
 | 
			
		||||
        echo "Healthcheck error: UNHEALTHY SBI TCP/HTTP port $SBI_PORT is not listening."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/udr-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								docs/oai-cn5g-and-ueransim/healthcheck/udr-healthcheck.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
STATUS=0
 | 
			
		||||
UDR_IP_NUDR_INTERFACE=$(ifconfig $UDR_INTERFACE_NAME_FOR_NUDR | grep inet | awk {'print $2'})
 | 
			
		||||
UDR_NUDR_PORT_STATUS=$(netstat -tnpl | grep -o "$UDR_IP_NUDR_INTERFACE:$UDR_INTERFACE_PORT_FOR_NUDR")
 | 
			
		||||
#Check if entrypoint properly configured the conf file and no parameter is unset(optional)
 | 
			
		||||
NB_UNREPLACED_AT=`cat /openair-udr/etc/*.conf | grep -v contact@openairinterface.org | grep -c @ || true`
 | 
			
		||||
 | 
			
		||||
if [ $NB_UNREPLACED_AT -ne 0 ]; then
 | 
			
		||||
        STATUS=1
 | 
			
		||||
        echo "Healthcheck error: UNHEALTHY configuration file is not configured properly"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ -z $UDR_NUDR_PORT_STATUS ]]; then
 | 
			
		||||
        STATUS=1
 | 
			
		||||
        echo "Healthcheck error: UNHEALTHY SBI TCP/HTTP port $UDR_INTERFACE_PORT_FOR_NUDR is not listening."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exit $STATUS
 | 
			
		||||
							
								
								
									
										0
									
								
								docs/oai-cn5g-and-ueransim/oai-gnb.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								docs/oai-cn5g-and-ueransim/oai-gnb.yaml
									
									
									
									
									
										Normal file
									
								
							
		Reference in New Issue
	
	Block a user