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
Package Registry
Model registry
Operate
Terraform modules
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
Mingxuan Li
openairinterface5G
Commits
18ead40b
Commit
18ead40b
authored
2 years ago
by
Rohan
Browse files
Options
Downloads
Patches
Plain Diff
Entrypoint updated for deployment on cluster
parent
a549bc62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/scripts/gnb_entrypoint.sh
+6
-1
6 additions, 1 deletion
docker/scripts/gnb_entrypoint.sh
docker/scripts/gnb_parameters.yaml
+14
-0
14 additions, 0 deletions
docker/scripts/gnb_parameters.yaml
with
20 additions
and
1 deletion
docker/scripts/gnb_entrypoint.sh
+
6
−
1
View file @
18ead40b
...
...
@@ -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_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_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_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
...
...
@@ -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.
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
}
# Resolve AMF FQDN
if
(
$USE_FQDN
)
;
then
AMF_IP_ADDRESS
=(
`
getent hosts
$AMF_FQDN
|
awk
'{print $1}'
`
)
;
fi
# Only this template will be manipulated
...
...
This diff is collapsed.
Click to expand it.
docker/scripts/gnb_parameters.yaml
+
14
−
0
View file @
18ead40b
...
...
@@ -28,6 +28,8 @@
-
filePrefix
:
gnb.band78.tm1.fr1.106PRB.usrpb210.conf
outputfilename
:
"
gnb.nsa.tdd.conf"
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
...
...
@@ -72,6 +74,8 @@
-
filePrefix
:
gnb.band78.sa.fr1.106PRB.usrpn310.conf
outputfilename
:
"
gnb.sa.tdd.conf"
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
...
...
@@ -104,6 +108,8 @@
-
filePrefix
:
gnb.sa.band78.fr1.106PRB.usrpb210.conf
outputfilename
:
"
gnb.sa.tdd.b2xx.conf"
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
...
...
@@ -134,6 +140,8 @@
-
filePrefix
:
gnb.sa.band66.fr1.106PRB.usrpn300.conf
outputfilename
:
"
gnb.sa.fdd.conf"
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
...
...
@@ -166,6 +174,8 @@
-
filePrefix
:
gNB_SA_CU.conf
outputfilename
:
"
gnb.sa.cu.conf"
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
...
...
@@ -206,6 +216,8 @@
-
filePrefix
:
gNB_SA_DU.conf
outputfilename
:
"
gnb.sa.du.tdd.conf"
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
...
...
@@ -248,6 +260,8 @@
-
filePrefix
:
proxy_gnb.band78.sa.fr1.106PRB.usrpn310.conf
outputfilename
:
"
gnb.sa.nfapi.vnf.conf"
config
:
-
key
:
GNB_ID
env
:
"
@GNB_ID@"
-
key
:
Active_gNBs
env
:
"
@GNB_NAME@"
-
key
:
gNB_name
...
...
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