Newer
Older

Raphael Defosseux
committed
version: '3.8'
services:
cicd_mysql:
container_name: cicd-mysql-svr
image: mysql:5.7
ports:
- 3306
command: --init-file /docker-entrypoint-initdb.d/oai_db.sql

Raphael Defosseux
committed
volumes:
- ./oai_db.sql:/docker-entrypoint-initdb.d/oai_db.sql:rw

Raphael Defosseux
committed
environment:

Raphael Defosseux
committed
- MYSQL_DATABASE=oai_db
- MYSQL_USER=test
- MYSQL_PASSWORD=test
- MYSQL_ROOT_PASSWORD=linux
healthcheck:
test: "/usr/bin/mysql --user=root --password=linux -e 'show databases;'"
interval: 10s
timeout: 5s
retries: 5

Raphael Defosseux
committed
networks:
cicd_public_net:
ipv4_address: 192.168.61.194
cicd_oai_udr:
container_name: cicd-oai-udr
image: oai-udr:UDR_IMAGE_TAG
ports:
- 80
command: >
bash -c "nohup tshark -i eth0 -w /tmp/udr.pcap 2>&1 > /dev/null &
/openair-udr/bin/oai_udr -c /openair-udr/etc/udr.conf -o"
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cap_add:
- NET_ADMIN
environment:
- TZ=Europe/Paris
- INSTANCE=1
- 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.61.194
- MYSQL_USER=test
- MYSQL_PASS=test
- MYSQL_DB=oai_db
- WAIT_MYSQL=120
depends_on:
- cicd_mysql
networks:
cicd_public_net:
ipv4_address: 192.168.61.200
volumes:
- ./udr-healthy-check.sh:/openair-udr/bin/udr-healthy-check.sh
healthcheck:
test: /bin/bash -c "/openair-udr/bin/udr-healthy-check.sh"
interval: 10s
timeout: 5s
retries: 5
cicd_oai_udm:
container_name: cicd-oai-udm
image: oai-udm:UDM_IMAGE_TAG
ports:
- 80
command: >
bash -c "nohup tshark -i eth0 -w /tmp/udm.pcap 2>&1 > /dev/null &
/openair-udm/bin/oai_udm -c /openair-udm/etc/udm.conf -o"
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
cap_add:
- NET_ADMIN
environment:
- TZ=Europe/Paris
- INSTANCE=1
- PID_DIRECTORY=/var/run
- UDM_NAME=OAI_UDM
- SBI_IF_NAME=eth0
- SBI_PORT=80
- UDM_VERSION_NB=v1
- UDR_IP_ADDRESS=192.168.61.200
- UDR_PORT=80
- UDR_VERSION_NB=v1
depends_on:
- cicd_mysql
- cicd_oai_udr
networks:
cicd_public_net:
ipv4_address: 192.168.61.201
volumes:
- ./udm-healthy-check.sh:/openair-udm/bin/udm-healthy-check.sh
healthcheck:
test: /bin/bash -c "/openair-udm/bin/udm-healthy-check.sh"
interval: 10s
timeout: 5s
retries: 5
cicd_oai_ausf:
container_name: cicd-oai-ausf
image: oai-ausf:AUSF_IMAGE_TAG
ports:
- 80
command: >
bash -c "nohup tshark -i eth0 -w /tmp/ausf.pcap 2>&1 > /dev/null &
/openair-ausf/bin/oai_ausf -c /openair-ausf/etc/ausf.conf -o"
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
cap_add:
- NET_ADMIN
environment:
- TZ=Europe/Paris
- INSTANCE_ID=1
- PID_DIR=/var/run
- AUSF_NAME=OAI_AUSF
- SBI_IF_NAME=eth0
- SBI_PORT=80
- UDM_IP_ADDRESS=192.168.61.201
- UDM_PORT=80
- UDM_VERSION_NB=v1
- AMF_IP_ADDRESS=192.168.61.196
- AMF_PORT=80
- AMF_VERSION_NB=v1
depends_on:
- cicd_mysql
- cicd_oai_udr
- cicd_oai_udm
networks:
cicd_public_net:
ipv4_address: 192.168.61.199
volumes:
- ./ausf-healthy-check.sh:/openair-ausf/bin/ausf-healthy-check.sh
healthcheck:
test: /bin/bash -c "/openair-ausf/bin/ausf-healthy-check.sh"
interval: 10s
timeout: 5s
retries: 5

Raphael Defosseux
committed
cicd_oai_nrf:
container_name: cicd-oai-nrf
image: oai-nrf:NRF_IMAGE_TAG
ports:
- 80
- 9090
command: >
bash -c "nohup tshark -i eth0 -w /tmp/nrf.pcap 2>&1 > /dev/null &
/openair-nrf/bin/oai_nrf -c /openair-nrf/etc/nrf.conf -o"
cap_add:
- NET_ADMIN

Raphael Defosseux
committed
environment:

Raphael Defosseux
committed
- 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:
cicd_public_net:
ipv4_address: 192.168.61.195
volumes:
- ./nrf-healthy-check.sh:/openair-nrf/bin/nrf-healthy-check.sh
healthcheck:
test: /bin/bash -c "/openair-nrf/bin/nrf-healthy-check.sh"
interval: 10s
timeout: 5s
retries: 5
cicd_oai_amf:
container_name: cicd-oai-amf
image: oai-amf:AMF_IMAGE_TAG
ports:
- 38412
- 80
command: >
bash -c "nohup tshark -i eth0 -w /tmp/amf.pcap 2>&1 > /dev/null &
/openair-amf/bin/oai_amf -c /openair-amf/etc/amf.conf -o"
cap_add:
- NET_ADMIN

Raphael Defosseux
committed
environment:

Raphael Defosseux
committed
- 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

Raphael Defosseux
committed
- SMF_IPV4_ADDR_0=192.168.61.197
- SMF_HTTP_VERSION_0=v1

Raphael Defosseux
committed
- SMF_INSTANCE_ID_1=2

Raphael Defosseux
committed
- SMF_IPV4_ADDR_1=192.168.61.197
- SMF_HTTP_VERSION_1=v1

Raphael Defosseux
committed
- MYSQL_USER=root
- MYSQL_PASS=linux
- MYSQL_DB=oai_db
- OPERATOR_KEY=63bfa50ee6523365ff14c1f45f88737d
- NRF_IPV4_ADDRESS=192.168.61.195
- NRF_PORT=80
- NF_REGISTRATION=yes
- SMF_SELECTION=yes
- USE_FQDN_DNS=no
- EXTERNAL_AUSF=yes

Raphael Defosseux
committed
- NRF_API_VERSION=v1
- AUSF_IPV4_ADDRESS=192.168.61.199

Raphael Defosseux
committed
- AUSF_PORT=80
- AUSF_API_VERSION=v1
depends_on:
- cicd_mysql
- cicd_oai_nrf
- cicd_oai_udr
- cicd_oai_udm
- cicd_oai_ausf

Raphael Defosseux
committed
networks:
cicd_public_net:
ipv4_address: 192.168.61.196
volumes:
- ./amf-healthy-check.sh:/openair-amf/bin/amf-healthy-check.sh
healthcheck:
test: /bin/bash -c "/openair-amf/bin/amf-healthy-check.sh"
interval: 10s
timeout: 5s
retries: 5
cicd_oai_smf:
container_name: cicd-oai-smf
image: oai-smf:SMF_IMAGE_TAG
ports:
- 80
command: >
bash -c "nohup tshark -i eth0 -w /tmp/smf.pcap 2>&1 > /dev/null &
/openair-smf/bin/oai_smf -c /openair-smf/etc/smf.conf -o"
cap_add:
- NET_ADMIN

Raphael Defosseux
committed
environment:

Raphael Defosseux
committed
- PID_DIRECTORY=/var/run
- SMF_INTERFACE_NAME_FOR_N4=eth0
- SMF_INTERFACE_NAME_FOR_SBI=eth0
- SMF_INTERFACE_HTTP2_PORT_FOR_SBI=9090

Raphael Defosseux
committed
- SMF_API_VERSION=v1
- DEFAULT_DNS_IPV4_ADDRESS=192.168.18.129
- DEFAULT_DNS_SEC_IPV4_ADDRESS=4.4.4.4

Raphael Defosseux
committed
- AMF_IPV4_ADDRESS=192.168.61.196

Raphael Defosseux
committed
- AMF_API_VERSION=v1
- AMF_FQDN=cicd_oai_amf

Raphael Defosseux
committed
- UDM_IPV4_ADDRESS=127.0.0.1

Raphael Defosseux
committed
- UDM_API_VERSION=v1
- UDM_FQDN=localhost

Raphael Defosseux
committed
- UPF_IPV4_ADDRESS=192.168.61.198
- UPF_FQDN_0=cicd_oai_upf

Raphael Defosseux
committed
- NRF_IPV4_ADDRESS=192.168.61.195
- NRF_PORT=80
- NRF_API_VERSION=v1
- NRF_FQDN=cicd_oai_nrf
- REGISTER_NRF=yes
- DISCOVER_UPF=yes
- USE_FQDN_DNS=yes

Raphael Defosseux
committed
depends_on:
- cicd_oai_nrf
- cicd_oai_amf
networks:
cicd_public_net:
ipv4_address: 192.168.61.197
volumes:
- ./smf-healthy-check.sh:/oai-cn5g-smf/bin/smf-healthy-check.sh
healthcheck:
test: /bin/bash -c "/oai-cn5g-smf/bin/smf-healthy-check.sh"
interval: 10s
timeout: 5s
retries: 5
cicd_oai_upf:
container_name: cicd-oai-upf
image: oai-spgwu-tiny:SPGWU_IMAGE_TAG

Raphael Defosseux
committed
ports:
- 2152
- 8805
command: >
bash -c "nohup tshark -i eth0 -w /tmp/spgwu.pcap 2>&1 > /dev/null &
/openair-spgwu-tiny/bin/oai_spgwu -c /openair-spgwu-tiny/etc/spgw_u.conf -o"

Raphael Defosseux
committed
environment:

Raphael Defosseux
committed
- 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

Raphael Defosseux
committed
- NETWORK_UE_NAT_OPTION=yes

Raphael Defosseux
committed
- NETWORK_UE_IP=12.0.0.0/24
#- THREAD_S1U_PRIO=9090
#- S1U_THREADS=16
#- THREAD_SX_PRIO=64
#- SX_THREADS=1
#- THREAD_SGI_PRIO=64
#- SGI_THREADS=16

Raphael Defosseux
committed
- SPGWC0_IP_ADDRESS=192.168.61.197

Raphael Defosseux
committed
- 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=cicd_oai_upf
- NRF_IPV4_ADDRESS=192.168.61.195
- NRF_PORT=80
- NRF_API_VERSION=v1

Raphael Defosseux
committed
- NRF_FQDN=cicd_oai_nrf
- NSSAI_SST_0=222
- NSSAI_SD_0=123
- DNN_0=default

Raphael Defosseux
committed
depends_on:

Raphael Defosseux
committed
- cicd_oai_smf
cap_add:
- NET_ADMIN
- SYS_ADMIN
cap_drop:
- ALL
privileged: true
networks:
cicd_public_net:
ipv4_address: 192.168.61.198
volumes:
- ./upf-healthy-check.sh:/openair-spgwu-tiny/bin/upf-healthy-check.sh
healthcheck:
test: /bin/bash -c "/openair-spgwu-tiny/bin/upf-healthy-check.sh"
interval: 10s
timeout: 5s
retries: 5
networks:
cicd_public_net:
name: cicd-oai-public-net
driver: bridge
ipam:
config:
- subnet: 192.168.61.192/26
driver_opts:
com.docker.network.bridge.name: "cicd-public"