Preliminaries - SantiagoBH/5G-NSA-Network-with-Mosaic5g GitHub Wiki
It is necesarry to install Docker and Cassandra, to facilitate the installation and deployment procedure for the HSS (Home Subscriber Server).
Install docker
sudo snap install docker
sudo groupadd docker
sudo adduser $USER docker
reboot
Install cassandra DB
cd mosaic5g/
docker ps
docker run --name cassandra-docker -d -e CASSANDRA_CLUSTER_NAME="OAI HSS Cluster" \
-e CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch \
mosaic5gecosys/cassandra-m5g:1.0 # Create a cassandra container for the HSS
docker exec -it cassandra-docker bash
nodetool status
cqlsh --file ./oai_db.cql 172.17.0.2 # Install the oai_db database
exit
docker start cassandra-docker # start the container
- The cassandra status and IP address (172.17.0.2).
- The container must be started every time the computer starts.