split functionality build and run

This commit is contained in:
Erik Foris 2024-04-18 16:28:29 +02:00
parent 6209394465
commit 8d807ea659

View File

@ -3,9 +3,7 @@ cd /opt
apt update
apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev screen libtool swig
git clone https://github.com/srsran/oran-sc-ric.git
cd oran-sc-ric
docker compose up -d
cd /opt
#install ZeroMQ
sudo apt-get install -y libzmq3-dev
@ -27,20 +25,17 @@ cd czmq
make -j`nproc`
sudo make install
sudo ldconfig
#-----#
cd /opt
git clone https://github.com/srsran/srsRAN_Project/
cd srsRAN_Project/docker
cd srsRAN_Project
git checkout test
docker compose up -d --build 5gc
cd ..
mkdir build
cd build
cmake .. -DENABLE_EXPORT=ON -DENABLE_ZEROMQ=ON
make -j`nproc`
#make test
cd apps/gnb
sudo screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
sudo ip netns add ue1
@ -55,9 +50,3 @@ cmake ../
make -j`nproc`
make install
srsran_install_configs.sh user
sleep 10
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
cd /opt/oran-sc-ric
docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl