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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
spbro
OpenXG-RAN
Commits
0daabdeb
Commit
0daabdeb
authored
5 months ago
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the aw2s entrypoint to support new yaml config and updated images
parent
8e6234a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
docker/scripts/gnb-aw2s_entrypoint.sh
docker/scripts/gnb-aw2s_entrypoint.sh
+19
-5
No files found.
docker/scripts/gnb-aw2s_entrypoint.sh
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.
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