This modification aims to improve health status detection by using PRACH IO as an indicator of the gNB's status (container is marked as "healthy" when the PRACH IO value in gNB nrL1_stats.log exceeds 0.0 dB.). The new condition accounts for scenarios where the container may not exit or produce error codes (e.g., “sleep” logs or "error code overflow" messages).
25 lines
823 B
YAML
25 lines
823 B
YAML
services:
|
|
oai-gnb:
|
|
image: ${REGISTRY:-oaisoftwarealliance}/${GNB_IMG:-oai-gnb}:${TAG:-develop}
|
|
network_mode: "host"
|
|
container_name: oai-gnb
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- SYS_NICE
|
|
- IPC_LOCK
|
|
ulimits:
|
|
core: -1 # for core dumps
|
|
environment:
|
|
TZ: Europe/Paris
|
|
USE_ADDITIONAL_OPTIONS: --tune-offset 20000000 -A 90 --log_config.global_log_options level,nocolor,time
|
|
volumes:
|
|
- ../../conf_files/gnb.sa.band78.106prb.n310.7ds2u.conf:/opt/oai-gnb/etc/gnb.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "/opt/oai-gnb/bin/check-prach-io.sh"
|
|
start_period: 15s
|
|
start_interval: 500ms
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|