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:
@@ -258,6 +258,13 @@ Password : 1423
|
|||||||
|
|
||||||
Using Web UI, add a subscriber
|
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:
|
### Provisioning of IMSI and MSISDN with OsmoHLR as follows:
|
||||||
|
|
||||||
1. First, login to the osmohlr container
|
1. First, login to the osmohlr container
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ RUN apt-get update && \
|
|||||||
python3-pip \
|
python3-pip \
|
||||||
iptables \
|
iptables \
|
||||||
iperf \
|
iperf \
|
||||||
|
mongodb-clients \
|
||||||
gnupg && \
|
gnupg && \
|
||||||
apt-get autoremove -y && apt-get autoclean
|
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/include /open5gs/install/include
|
||||||
COPY --from=builder /open5gs/install/lib /open5gs/install/lib
|
COPY --from=builder /open5gs/install/lib /open5gs/install/lib
|
||||||
COPY --from=builder /open5gs/webui /open5gs/webui
|
COPY --from=builder /open5gs/webui /open5gs/webui
|
||||||
|
COPY --from=builder /open5gs/misc/db /open5gs/misc/db
|
||||||
|
|
||||||
# Set the working directory to open5gs
|
# Set the working directory to open5gs
|
||||||
WORKDIR open5gs
|
WORKDIR open5gs
|
||||||
|
|||||||
@@ -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"
|
[ ${#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.yaml install/etc/open5gs
|
||||||
cp /mnt/hss/hss.conf install/etc/freeDiameter
|
cp /mnt/hss/hss.conf install/etc/freeDiameter
|
||||||
cp /mnt/hss/make_certs.sh install/etc/freeDiameter
|
cp /mnt/hss/make_certs.sh install/etc/freeDiameter
|
||||||
|
|||||||
Reference in New Issue
Block a user