Add Support for CLI through open5gs-dbctl in HSS (#307)

* Add Support for CLI through open5gs-dbctl in HSS

* Add Support for CLI through open5gs-dbctl in HSS
This commit is contained in:
Patricio Latini
2024-04-15 03:32:30 -03:00
committed by GitHub
parent f69523b979
commit 8b2f5c9211
3 changed files with 12 additions and 0 deletions

View File

@@ -258,6 +258,13 @@ Password : 1423
Using Web UI, add a subscriber
#### or using cli
```
sudo docker exec -it hss misc/db/open5gs-dbctl add 001010123456790 8baf473f2f8fd09487cccbd7097c6862 8E27B6AF0E692E750F32667A3B14605D
```
### Provisioning of IMSI and MSISDN with OsmoHLR as follows:
1. First, login to the osmohlr container

View File

@@ -102,6 +102,7 @@ RUN apt-get update && \
python3-pip \
iptables \
iperf \
mongodb-clients \
gnupg && \
apt-get autoremove -y && apt-get autoclean
@@ -120,6 +121,7 @@ COPY --from=builder /open5gs/install/etc /open5gs/install/etc
COPY --from=builder /open5gs/install/include /open5gs/install/include
COPY --from=builder /open5gs/install/lib /open5gs/install/lib
COPY --from=builder /open5gs/webui /open5gs/webui
COPY --from=builder /open5gs/misc/db /open5gs/misc/db
# Set the working directory to open5gs
WORKDIR open5gs

View File

@@ -32,6 +32,9 @@ export IP_ADDR=$(awk 'END{print $1}' /etc/hosts)
[ ${#MNC} == 3 ] && EPC_DOMAIN="epc.mnc${MNC}.mcc${MCC}.3gppnetwork.org" || EPC_DOMAIN="epc.mnc0${MNC}.mcc${MCC}.3gppnetwork.org"
ln -s /usr/bin/mongo /usr/bin/mongosh
sed -i "s|localhost|$MONGO_IP|" /open5gs/misc/db/open5gs-dbctl
cp /mnt/hss/hss.yaml install/etc/open5gs
cp /mnt/hss/hss.conf install/etc/freeDiameter
cp /mnt/hss/make_certs.sh install/etc/freeDiameter