Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
c283c887
Commit
c283c887
authored
May 31, 2024
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev test
parent
2dc67586
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
199 additions
and
0 deletions
+199
-0
ping_docker_compose.gdb.yml
ping_docker_compose.gdb.yml
+10
-0
ping_docker_compose.yml
ping_docker_compose.yml
+129
-0
run_ping_test.sh
run_ping_test.sh
+58
-0
run_ue_in_gdb.sh
run_ue_in_gdb.sh
+2
-0
No files found.
ping_docker_compose.gdb.yml
0 → 100644
View file @
c283c887
services
:
oai-nr-ue
:
depends_on
:
build-ran-build
:
condition
:
service_completed_successfully
restart
:
true
command
:
bash -c "gdb --directory /oai-dir/ --args /opt/oai-nr-ue/bin/nr-uesoftmodem --do-ra --rfsim --noS1 --reconfig-file etc/rrc/reconfig.raw --rbconfig-file etc/rrc/rbconfig.raw --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time --num-ues 2"
stdin_open
:
true
tty
:
true
container_name
:
local-oai-nr-ue-gdb
ping_docker_compose.yml
0 → 100644
View file @
c283c887
services
:
build-ran-base
:
image
:
ran-base
build
:
context
:
.
dockerfile
:
docker/Dockerfile.base.ubuntu20
tags
:
-
ran-base
build-ran-build
:
image
:
ran-build
build
:
context
:
.
dockerfile
:
docker/Dockerfile.build.ubuntu20
tags
:
-
ran-build
depends_on
:
build-ran-base
:
condition
:
service_completed_successfully
build-gnb-image
:
image
:
gnb-local
build
:
context
:
.
dockerfile
:
docker/Dockerfile.gNB.ubuntu20
tags
:
-
gnb-local
depends_on
:
build-ran-build
:
condition
:
service_completed_successfully
entrypoint
:
"
"
command
:
echo "gnb-image built"
build-ue-image
:
image
:
ue-local
build
:
context
:
.
dockerfile
:
dockerfile
tags
:
-
ue-local
depends_on
:
build-ran-build
:
condition
:
service_completed_successfully
entrypoint
:
"
"
command
:
echo "ue-image built"
rebuild-ran-build
:
image
:
ran-build
volumes
:
-
.:/oai-dir/
command
:
bash -c "cd /oai-dir/ && mkdir -p cmake_targets/ran_build/build && cd cmake_targets/ran_build/build && cmake ../../../ -GNinja && cmake --build . --target nr-uesoftmodem rfsimulator nr-softmodem"
# --num-ues 2
entrypoint
:
"
"
depends_on
:
build-gnb-image
:
condition
:
service_completed_successfully
build-ue-image
:
condition
:
service_completed_successfully
oai-gnb
:
image
:
gnb-local
depends_on
:
rebuild-ran-build
:
condition
:
service_completed_successfully
restart
:
true
privileged
:
true
container_name
:
local-oai-gnb
environment
:
USE_ADDITIONAL_OPTIONS
:
--do-ra --rfsim --rfsimulator.wait_timeout 20 --noS1 --log_config.global_log_options level,nocolor,time
ASAN_OPTIONS
:
detect_leaks=0
networks
:
public_net
:
ipv4_address
:
192.168.71.140
volumes
:
-
./ci-scripts/conf_files/gnb.band78.106prb.rfsim.phytest-dora.conf:/opt/oai-gnb/etc/gnb.conf
-
rrc.config:/opt/oai-gnb
-
./cmake_targets/ran_build/build/nr-uesoftmodem:/opt/oai-gnb/bin/nr-uesoftmodem
-
./cmake_targets/ran_build/build/librfsimulator.so:/usr/local/lib/librfsimulator.so
healthcheck
:
test
:
/bin/bash -c "pgrep nr-softmodem"
interval
:
10s
timeout
:
5s
retries
:
5
oai-nr-ue
:
image
:
ue-local
build
:
context
:
.
dockerfile
:
docker/Dockerfile.nrUE.ubuntu20
tags
:
-
ue-local
depends_on
:
build-ran-build
:
condition
:
service_completed_successfully
restart
:
true
oai-gnb
:
condition
:
service_started
privileged
:
true
container_name
:
local-oai-nr-ue
environment
:
USE_ADDITIONAL_OPTIONS
:
--do-ra --rfsim --noS1 --reconfig-file etc/rrc/reconfig.raw --rbconfig-file etc/rrc/rbconfig.raw --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time
ASAN_OPTIONS
:
detect_leaks=0
volumes
:
-
./ci-scripts/conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
-
rrc.config:/opt/oai-nr-ue/etc/rrc/
-
./cmake_targets/ran_build/build/nr-uesoftmodem:/opt/oai-nr-ue/bin/nr-uesoftmodem
-
./cmake_targets/ran_build/build/librfsimulator.so:/usr/local/lib/librfsimulator.so
-
./crashdumps/:/cores/
networks
:
public_net
:
ipv4_address
:
192.168.71.150
healthcheck
:
test
:
/bin/bash -c "pgrep nr-uesoftmodem"
interval
:
10s
timeout
:
5s
retries
:
5
volumes
:
rrc.config
:
networks
:
public_net
:
driver
:
bridge
name
:
rfsim5g-oai-public-net
ipam
:
config
:
-
subnet
:
192.168.71.128/26
driver_opts
:
com.docker.network.bridge.name
:
"
rfsim5g-public"
run_ping_test.sh
0 → 100755
View file @
c283c887
#!/bin/bash
set
-e
trap
finalize SIGABRT SIGINT ERR
divider
=
"============================="
section
()
{
echo
${
divider
}
echo
$1
echo
${
divider
}
}
finalize
()
{
set
+e
echo
${
divider
}
echo
"Script exited unexpectedly"
echo
${
divider
}
docker logs local-oai-gnb
>
&
${
directory
}
/gnb.log
docker logs local-oai-nr-ue
>
&
${
directory
}
/ue.log
docker compose
-f
ping_docker_compose.yml down
echo
"Test result saves in
${
directory
}
"
exit
1
}
date
=
date
=
$(
date
'+%Y-%m-%d'
)
directory
=
"logs/"
$(
date
'+%Y-%m-%d_%H-%M-%S'
)
"/"
mkdir
-p
${
directory
}
ln
-s
"
$(
pwd
)
/
${
directory
}
"
logs/latest
docker compose
-f
ping_docker_compose.yml up
--wait
section
"running ping test from ue1 to gnb"
docker
exec
local-oai-nr-ue bash
-c
"ping -I oaitun_ue1 10.0.1.1 -c 10"
|
tee
${
directory
}
/ping_ue_gnb_1.log
section
"running ping test from ue2 to gnb"
docker
exec
local-oai-nr-ue bash
-c
"ping -I oaitun_ue2 10.0.1.1 -c 10"
|
tee
${
directory
}
/ping_ue_gnb_2.log
section
"running ping test from gnb to ue1"
docker
exec
local-oai-gnb bash
-c
"ping -I oaitun_enb1 10.0.1.2 -c 10"
|
tee
${
directory
}
/ping_gnb_ue_1.log
section
"running ping test from gnb to ue2"
docker
exec
local-oai-gnb bash
-c
"ping -I oaitun_enb1 10.0.1.3 -c 10"
|
tee
${
directory
}
/ping_gnb_ue_2.log
docker logs local-oai-gnb
>
&
${
directory
}
/gnb.log
docker logs local-oai-nr-ue
>
&
${
directory
}
/ue.log
docker compose
-f
ping_docker_compose.yml down
section
"error summary: UE. Warnings & errors: "
$(
cat
${
directory
}
/ue.log |
grep
"
\]
[WE] "
|
wc
-l
)
cat
${
directory
}
/ue.log |
grep
"
\]
[WE] "
section
"error summary: gNB. Warnings & errors: "
$(
cat
${
directory
}
/gnb.log |
grep
"
\]
[WE] "
|
wc
-l
)
cat
${
directory
}
/gnb.log |
grep
"
\]
[WE] "
exit
0
run_ue_in_gdb.sh
0 → 100755
View file @
c283c887
#!/bin/bash
docker compose
-f
ping_docker_compose.yml
-f
ping_docker_compose.gdb.yml run oai-nr-ue
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment