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
18ead40b
Commit
18ead40b
authored
Sep 20, 2022
by
Rohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Entrypoint updated for deployment on cluster
parent
a549bc62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
docker/scripts/gnb_entrypoint.sh
docker/scripts/gnb_entrypoint.sh
+6
-1
docker/scripts/gnb_parameters.yaml
docker/scripts/gnb_parameters.yaml
+14
-0
No files found.
docker/scripts/gnb_entrypoint.sh
View file @
18ead40b
...
@@ -11,6 +11,7 @@ THREAD_PARALLEL_CONFIG=${THREAD_PARALLEL_CONFIG:-PARALLEL_SINGLE_THREAD}
...
@@ -11,6 +11,7 @@ THREAD_PARALLEL_CONFIG=${THREAD_PARALLEL_CONFIG:-PARALLEL_SINGLE_THREAD}
if
[[
-v
USE_NSA_TDD_MONO
]]
;
then
cp
$PREFIX
/etc/gnb.nsa.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_NSA_TDD_MONO
]]
;
then
cp
$PREFIX
/etc/gnb.nsa.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_TDD_MONO
]]
;
then
cp
$PREFIX
/etc/gnb.sa.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_TDD_MONO
]]
;
then
cp
$PREFIX
/etc/gnb.sa.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_TDD_MONO_B2XX
]]
;
then
cp
$PREFIX
/etc/gnb.sa.tdd.b2xx.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_TDD_MONO_B2XX
]]
;
then
cp
$PREFIX
/etc/gnb.sa.tdd.b2xx.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_TDD_MONO_X3XX
]]
;
then
cp
$PREFIX
/etc/gnb.sa.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_FDD_MONO
]]
;
then
cp
$PREFIX
/etc/gnb.sa.fdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_FDD_MONO
]]
;
then
cp
$PREFIX
/etc/gnb.sa.fdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_CU
]]
;
then
cp
$PREFIX
/etc/gnb.sa.cu.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_CU
]]
;
then
cp
$PREFIX
/etc/gnb.sa.cu.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_TDD_CU
]]
;
then
cp
$PREFIX
/etc/gnb.sa.du.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_SA_TDD_CU
]]
;
then
cp
$PREFIX
/etc/gnb.sa.du.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
...
@@ -18,8 +19,12 @@ if [[ -v USE_SA_NFAPI_VNF ]]; then cp $PREFIX/etc/gnb.sa.nfapi.vnf.conf $PREFIX/
...
@@ -18,8 +19,12 @@ if [[ -v USE_SA_NFAPI_VNF ]]; then cp $PREFIX/etc/gnb.sa.nfapi.vnf.conf $PREFIX/
# Sometimes, the templates are not enough. We mount a conf file on $PREFIX/etc. It can be a template itself.
# Sometimes, the templates are not enough. We mount a conf file on $PREFIX/etc. It can be a template itself.
if
[[
-v
USE_VOLUMED_CONF
]]
;
then
cp
$PREFIX
/etc/mounted.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_VOLUMED_CONF
]]
;
then
cp
$PREFIX
/etc/mounted.conf
$PREFIX
/etc/gnb.conf
;
fi
# Resolve AMF FQDN
# Defualt Parameters
GNB_ID
=
${
GNB_ID
:-
0xe00
}
USE_FQDN
=
${
USE_FQDN
:-
false
}
AMF_FQDN
=
${
AMF_FQDN
:-
oai
-amf-svc
}
AMF_FQDN
=
${
AMF_FQDN
:-
oai
-amf-svc
}
# Resolve AMF FQDN
if
(
$USE_FQDN
)
;
then
AMF_IP_ADDRESS
=(
`
getent hosts
$AMF_FQDN
|
awk
'{print $1}'
`
)
;
fi
if
(
$USE_FQDN
)
;
then
AMF_IP_ADDRESS
=(
`
getent hosts
$AMF_FQDN
|
awk
'{print $1}'
`
)
;
fi
# Only this template will be manipulated
# Only this template will be manipulated
...
...
docker/scripts/gnb_parameters.yaml
View file @
18ead40b
...
@@ -28,6 +28,8 @@
...
@@ -28,6 +28,8 @@
-
filePrefix
:
gnb.band78.tm1.fr1.106PRB.usrpb210.conf
-
filePrefix
:
gnb.band78.tm1.fr1.106PRB.usrpb210.conf
outputfilename
:
"
gnb.nsa.tdd.conf"
outputfilename
:
"
gnb.nsa.tdd.conf"
config
:
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
-
key
:
gNB_name
...
@@ -72,6 +74,8 @@
...
@@ -72,6 +74,8 @@
-
filePrefix
:
gnb.band78.sa.fr1.106PRB.usrpn310.conf
-
filePrefix
:
gnb.band78.sa.fr1.106PRB.usrpn310.conf
outputfilename
:
"
gnb.sa.tdd.conf"
outputfilename
:
"
gnb.sa.tdd.conf"
config
:
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
-
key
:
gNB_name
...
@@ -104,6 +108,8 @@
...
@@ -104,6 +108,8 @@
-
filePrefix
:
gnb.sa.band78.fr1.106PRB.usrpb210.conf
-
filePrefix
:
gnb.sa.band78.fr1.106PRB.usrpb210.conf
outputfilename
:
"
gnb.sa.tdd.b2xx.conf"
outputfilename
:
"
gnb.sa.tdd.b2xx.conf"
config
:
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
-
key
:
gNB_name
...
@@ -134,6 +140,8 @@
...
@@ -134,6 +140,8 @@
-
filePrefix
:
gnb.sa.band66.fr1.106PRB.usrpn300.conf
-
filePrefix
:
gnb.sa.band66.fr1.106PRB.usrpn300.conf
outputfilename
:
"
gnb.sa.fdd.conf"
outputfilename
:
"
gnb.sa.fdd.conf"
config
:
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
-
key
:
gNB_name
...
@@ -166,6 +174,8 @@
...
@@ -166,6 +174,8 @@
-
filePrefix
:
gNB_SA_CU.conf
-
filePrefix
:
gNB_SA_CU.conf
outputfilename
:
"
gnb.sa.cu.conf"
outputfilename
:
"
gnb.sa.cu.conf"
config
:
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
-
key
:
gNB_name
...
@@ -206,6 +216,8 @@
...
@@ -206,6 +216,8 @@
-
filePrefix
:
gNB_SA_DU.conf
-
filePrefix
:
gNB_SA_DU.conf
outputfilename
:
"
gnb.sa.du.tdd.conf"
outputfilename
:
"
gnb.sa.du.tdd.conf"
config
:
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
-
key
:
gNB_name
...
@@ -248,6 +260,8 @@
...
@@ -248,6 +260,8 @@
-
filePrefix
:
proxy_gnb.band78.sa.fr1.106PRB.usrpn310.conf
-
filePrefix
:
proxy_gnb.band78.sa.fr1.106PRB.usrpn310.conf
outputfilename
:
"
gnb.sa.nfapi.vnf.conf"
outputfilename
:
"
gnb.sa.nfapi.vnf.conf"
config
:
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
-
key
:
gNB_name
...
...
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