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
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
OpenXG
OpenXG-SMF
Commits
1f267d78
Commit
1f267d78
authored
Mar 04, 2021
by
foo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dockerfile' of
https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-smf
into dockerfile
parents
f3db0c7f
2409d789
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
docker/Dockerfile.smf.rhel8.2
docker/Dockerfile.smf.rhel8.2
+2
-1
docker/Dockerfile.ubuntu.18.04
docker/Dockerfile.ubuntu.18.04
+9
-0
scripts/entrypoint.sh
scripts/entrypoint.sh
+8
-0
No files found.
docker/Dockerfile.smf.rhel8.2
View file @
1f267d78
...
@@ -112,6 +112,7 @@ WORKDIR /openair-smf
...
@@ -112,6 +112,7 @@ WORKDIR /openair-smf
#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"]
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
ENTRYPOINT ["/openair-smf/bin/entrypoint.sh"]
ENTRYPOINT ["/openair-smf/bin/entrypoint.sh"]
#CMD ["sleep", "infinity"]
#CMD ["sleep", "infinity"]
\ No newline at end of file
docker/Dockerfile.ubuntu.18.04
View file @
1f267d78
...
@@ -91,6 +91,15 @@ COPY --from=oai-smf-builder /openair-smf/etc/smf.conf .
...
@@ -91,6 +91,15 @@ COPY --from=oai-smf-builder /openair-smf/etc/smf.conf .
WORKDIR /openair-smf
WORKDIR /openair-smf
<<<<<<< HEAD:docker/Dockerfile.ubuntu.18.04
ENTRYPOINT ["/bin/bash","/openair-smf/bin/entrypoint.sh"]
ENTRYPOINT ["/bin/bash","/openair-smf/bin/entrypoint.sh"]
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
=======
# expose ports
EXPOSE 80/tcp 9090/tcp 8805/udp
ENTRYPOINT ["/bin/bash","/openair-smf/bin/entrypoint.sh"]
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
>>>>>>> 2409d789898b1ac60fcc6f7d0e2a67cafb66f3ba:docker/Dockerfile.ubuntu.18.04
scripts/entrypoint.sh
100644 → 100755
View file @
1f267d78
...
@@ -13,7 +13,11 @@ for c in ${CONFIG_DIR}/*.conf; do
...
@@ -13,7 +13,11 @@ for c in ${CONFIG_DIR}/*.conf; do
# with the value of the environment variable "VAR"
# with the value of the environment variable "VAR"
EXPRESSIONS
=
""
EXPRESSIONS
=
""
for
v
in
${
VARS
}
;
do
for
v
in
${
VARS
}
;
do
<<<<<<
< HEAD
NEW_VAR
=
`
echo
$v
|
sed
-e
"s#@##g"
`
NEW_VAR
=
`
echo
$v
|
sed
-e
"s#@##g"
`
=======
NEW_VAR
=
`
echo
$v
|
sed
-e
"s#@##g"
`
>>>>>>>
2409d789898b1ac60fcc6f7d0e2a67cafb66f3ba
if
[[
-z
${
!NEW_VAR+x
}
]]
;
then
if
[[
-z
${
!NEW_VAR+x
}
]]
;
then
echo
"Error: Environment variable '
${
NEW_VAR
}
' is not set."
\
echo
"Error: Environment variable '
${
NEW_VAR
}
' is not set."
\
"Config file '
$(
basename
$c
)
' requires all of
$VARS
."
"Config file '
$(
basename
$c
)
' requires all of
$VARS
."
...
@@ -27,4 +31,8 @@ for c in ${CONFIG_DIR}/*.conf; do
...
@@ -27,4 +31,8 @@ for c in ${CONFIG_DIR}/*.conf; do
sed
-i
"
${
EXPRESSIONS
}
"
${
c
}
sed
-i
"
${
EXPRESSIONS
}
"
${
c
}
done
done
echo
"Done setting the configuration"
echo
"Done setting the configuration"
<<<<<<
< HEAD
exec
"
$@
"
exec
"
$@
"
=======
exec
"
$@
"
>>>>>>>
2409d789898b1ac60fcc6f7d0e2a67cafb66f3ba
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