* No-root

* delete TO DO comment
This commit is contained in:
Juan Pontón Rodríguez
2024-08-22 12:36:40 +02:00
committed by GitHub
parent 1b69775e0c
commit be9c9bb86b
8 changed files with 14 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
logger: logger:
file: /opt/open5gs/var/log/open5gs/mme.log file:
path: /opt/open5gs/var/log/open5gs/mme.log
# level: info # fatal|error|warn|info(default)|debug|trace # level: info # fatal|error|warn|info(default)|debug|trace
global: global:

View File

@@ -34,6 +34,7 @@ services:
restart : on-failure restart : on-failure
upf: upf:
image: gradiant/open5gs:2.7.1 image: gradiant/open5gs:2.7.1
user: root
command: ["open5gs-upfd"] command: ["open5gs-upfd"]
cap_add: cap_add:
- all - all

View File

@@ -32,6 +32,7 @@ services:
restart : on-failure restart : on-failure
upf: upf:
image: gradiant/open5gs:2.7.1 image: gradiant/open5gs:2.7.1
user: root
command: ["open5gs-upfd"] command: ["open5gs-upfd"]
cap_add: cap_add:
- all - all

View File

@@ -1,5 +1,6 @@
logger: logger:
file: /opt/open5gs/var/log/open5gs/smf.log file:
path: /opt/open5gs/var/log/open5gs/smf.log
# level: info # fatal|error|warn|info(default)|debug|trace # level: info # fatal|error|warn|info(default)|debug|trace
global: global:

View File

@@ -69,6 +69,7 @@ services:
upf: upf:
image: gradiant/open5gs:2.7.1 image: gradiant/open5gs:2.7.1
user: root
command: command:
- open5gs-upfd - open5gs-upfd
cap_add: cap_add:

View File

@@ -1,5 +1,6 @@
logger: logger:
file: /opt/open5gs/var/log/open5gs/smf.log file:
path: /opt/open5gs/var/log/open5gs/smf.log
# level: info # fatal|error|warn|info(default)|debug|trace # level: info # fatal|error|warn|info(default)|debug|trace
global: global:

View File

@@ -74,6 +74,7 @@ services:
upf: upf:
image: gradiant/open5gs:2.7.1 image: gradiant/open5gs:2.7.1
user: root
command: command:
- open5gs-upfd - open5gs-upfd
cap_add: cap_add:

View File

@@ -102,10 +102,10 @@ ENV PATH=${APP_ROOT}/bin:${PATH} HOME=${APP_ROOT}
WORKDIR ${APP_ROOT} WORKDIR ${APP_ROOT}
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
# TODO: run with non-root user #Run with non-root user
#RUN groupadd -r open5gs && useradd --no-log-init -r -g open5gs open5gs RUN groupadd -r open5gs && useradd --no-log-init -r -g open5gs open5gs
#RUN chown -R open5gs:open5gs ${APP_ROOT} RUN chown -R open5gs:open5gs ${APP_ROOT}
#USER open5gs USER open5gs
#Default CONF values #Default CONF values
ENV DB_URI=mongodb://mongo/open5gs ENV DB_URI=mongodb://mongo/open5gs