Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF-Simple
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
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
CommunityXG
OpenXG-SMF-Simple
Commits
f3db0c7f
Commit
f3db0c7f
authored
Mar 04, 2021
by
foo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tzdata nrf-registration
parent
fd198951
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
14 deletions
+18
-14
docker/Dockerfile.smf.rhel8.2
docker/Dockerfile.smf.rhel8.2
+2
-1
docker/Dockerfile.ubuntu.18.04
docker/Dockerfile.ubuntu.18.04
+7
-4
etc/smf.conf
etc/smf.conf
+5
-5
scripts/entrypoint.sh
scripts/entrypoint.sh
+4
-4
No files found.
docker/Dockerfile.smf.rhel8.2
View file @
f3db0c7f
...
...
@@ -73,6 +73,7 @@ RUN rm /etc/pki/entitlement/*pem
#---------------------------------------------------------------------
FROM registry.access.redhat.com/ubi8/ubi:latest as oai-smf
ENV TZ=Europe/Paris
# We install some debug tools for the moment in addition of mandatory libraries
RUN yum update -y && \
yum install -y --enablerepo="ubi-8-codeready-builder" \
...
...
@@ -108,7 +109,7 @@ COPY --from=oai-smf-builder /openair-smf/etc/smf.conf .
WORKDIR /openair-smf
# expose ports
EXPOSE 80/tcp 9090/tcp 8805/udp
#
EXPOSE 80/tcp 9090/tcp 8805/udp
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
ENTRYPOINT ["/openair-smf/bin/entrypoint.sh"]
...
...
docker/Dockerfile.ubuntu18.04
→
docker/Dockerfile.ubuntu
.
18.04
View file @
f3db0c7f
...
...
@@ -33,8 +33,7 @@ FROM ubuntu:bionic as oai-smf-builder
ARG NEEDED_GIT_PROXY
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && DEBIAN_FRONTEND=noninteractive apt-get install --yes \
psmisc \
git \
...
...
@@ -59,12 +58,12 @@ RUN ./build_smf --clean --Verbose --build-type Release --jobs
#---------------------------------------------------------------------
FROM ubuntu:bionic as oai-smf
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV TZ=Europe/Paris
# We install some debug tools for the moment in addition of mandatory libraries
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && DEBIAN_FRONTEND=noninteractive apt-get install --yes \
psmisc \
net-tools \
tzdata \
bc \
tshark \
libasan4 \
...
...
@@ -77,6 +76,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && DE
# Copying executable and generated libraries
WORKDIR /openair-smf/bin
COPY --from=oai-smf-builder /openair-smf/build/smf/build/smf oai_smf
COPY --from=oai-smf-builder /openair-smf/scripts/entrypoint.sh entrypoint.sh
COPY --from=oai-smf-builder /usr/local/lib/libpistache.so /usr/local/lib/
COPY --from=oai-smf-builder /usr/local/lib/libnghttp2_asio.so.1 /usr/local/lib/
COPY --from=oai-smf-builder /usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 /usr/lib/x86_64-linux-gnu/
...
...
@@ -91,3 +91,6 @@ COPY --from=oai-smf-builder /openair-smf/etc/smf.conf .
WORKDIR /openair-smf
ENTRYPOINT ["/bin/bash","/openair-smf/bin/entrypoint.sh"]
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
etc/smf.conf
View file @
f3db0c7f
...
...
@@ -80,8 +80,8 @@ SMF =
SUPPORT_FEATURES
:
{
# STRING, {"yes", "no"},
REGISTER_NRF
=
"
no
"
;
# Set to yes if SMF resgisters to an NRF
DISCOVER_UPF
=
"
no
"
;
# Set to yes to enable UPF discovery and selection
REGISTER_NRF
=
"
@REGISTER_NRF@
"
;
# Set to yes if SMF resgisters to an NRF
DISCOVER_UPF
=
"
@DISCOVER_UPF@
"
;
# Set to yes to enable UPF discovery and selection
FORCE_PUSH_PROTOCOL_CONFIGURATION_OPTIONS
=
"no"
;
# Non standard feature, normally should be set to "no",
# but you may need to set to yes for UE that do not explicitly request a PDN address through NAS signalling
USE_LOCAL_SUBSCRIPTION_INFO
=
"yes"
;
# Set to yes if SMF uses local subscription information instead of from an UDM
...
...
@@ -103,9 +103,9 @@ SMF =
NRF
:
{
IPV4_ADDRESS
=
"
192.168.12.100
"
;
# YOUR NRF CONFIG HERE
PORT
=
80
;
# YOUR NRF CONFIG HERE (default: 80)
API_VERSION
=
"
v1
"
;
# YOUR NRF API VERSION FOR SBI CONFIG HERE
IPV4_ADDRESS
=
"
@NRF_IPV4_ADDRESS@
"
;
# YOUR NRF CONFIG HERE
PORT
=
@
NRF_PORT
@
;
# YOUR NRF CONFIG HERE (default: 80)
API_VERSION
=
"
@NRF_API_VERSION@
"
;
# YOUR NRF API VERSION FOR SBI CONFIG HERE
};
UPF_LIST
= (
...
...
scripts/entrypoint.sh
View file @
f3db0c7f
...
...
@@ -3,18 +3,18 @@
set
-euo
pipefail
CONFIG_DIR
=
"/openair-smf/etc"
PUSH_PROTOCOL_OPTION
=
${
PUSH_PROTOCOL_OPTION
:-
no
}
for
c
in
${
CONFIG_DIR
}
/
*
.conf
;
do
# grep variable names (format: ${VAR}) from template to be rendered
VARS
=
$(
grep
-oP
'@[a-zA-Z0-9_]+@'
${
c
}
|
sort
|
uniq
| xargs
)
echo
"Now setting these variables '
${
VARS
}
'"
# create sed expressions for substituting each occurrence of ${VAR}
# with the value of the environment variable "VAR"
EXPRESSIONS
=
""
for
v
in
${
VARS
}
;
do
NEW_VAR
=
`
echo
$v
|
sed
-e
"s#@##g"
`
if
[[
"
${
!NEW_VAR
}
x"
==
"x"
]]
;
then
NEW_VAR
=
`
echo
$v
|
sed
-e
"s#@##g"
`
if
[[
-z
${
!NEW_VAR+x
}
]]
;
then
echo
"Error: Environment variable '
${
NEW_VAR
}
' is not set."
\
"Config file '
$(
basename
$c
)
' requires all of
$VARS
."
exit
1
...
...
@@ -26,5 +26,5 @@ for c in ${CONFIG_DIR}/*.conf; do
# render template and inline replace config file
sed
-i
"
${
EXPRESSIONS
}
"
${
c
}
done
echo
"Done setting the configuration"
exec
"
$@
"
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