Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
0daabdeb
Commit
0daabdeb
authored
5 months ago
by
Bartosz Podrygajlo
Browse files
Options
Downloads
Patches
Plain Diff
Update the aw2s entrypoint to support new yaml config and updated images
parent
8e6234a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!3021
Integration: `2024.w40b`
,
!3007
Enable gNB configuration through YAML file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/scripts/gnb-aw2s_entrypoint.sh
+19
-5
19 additions, 5 deletions
docker/scripts/gnb-aw2s_entrypoint.sh
with
19 additions
and
5 deletions
docker/scripts/gnb-aw2s_entrypoint.sh
+
19
−
5
View file @
0daabdeb
...
...
@@ -9,14 +9,29 @@ echo "=================================="
echo
"/proc/sys/kernel/core_pattern=
$(
cat
/proc/sys/kernel/core_pattern
)
"
if
[
!
-f
$CONFIGFILE
]
;
then
echo
"No configuration file found: please mount at
$CONFIGFILE
"
exit
255
echo
"No configuration file
$CONFIGFILE
found: attempting to find YAML config"
YAML_CONFIGFILE
=
$PREFIX
/etc/gnb.yaml
if
[
!
-f
$YAML_CONFIGFILE
]
;
then
echo
"No configuration file
$YAML_CONFIGFILE
found. Please mount either at
$CONFIGFILE
or
$YAML_CONFIGFILE
"
exit
255
fi
CONFIGFILE
=
$YAML_CONFIGFILE
fi
echo
"=================================="
echo
"== Configuration file:"
cat
$CONFIGFILE
new_args
=()
while
[[
$#
-gt
0
]]
;
do
new_args+
=(
"
$1
"
)
shift
done
new_args+
=(
"-O"
)
new_args+
=(
"
$CONFIGFILE
"
)
# enable printing of stack traces on assert
export
OAI_GDBSTACKS
=
1
...
...
@@ -24,7 +39,6 @@ echo "=================================="
echo
"== Starting gNB soft modem with AW2S"
if
[[
-v
USE_ADDITIONAL_OPTIONS
]]
;
then
echo
"Additional option(s):
${
USE_ADDITIONAL_OPTIONS
}
"
new_args
=()
while
[[
$#
-gt
0
]]
;
do
new_args+
=(
"
$1
"
)
shift
...
...
@@ -35,6 +49,6 @@ if [[ -v USE_ADDITIONAL_OPTIONS ]]; then
echo
"
${
new_args
[@]
}
"
exec
"
${
new_args
[@]
}
"
else
echo
"
$
@
"
exec
"
$
@
"
echo
"
$
{
new_args
[@]
}
"
exec
"
$
{
new_args
[@]
}
"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment