Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
7429ef09c5 |
21
build
21
build
@ -1,25 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Install docker and compose plugin
|
|
||||||
|
|
||||||
# Add Docker's official GPG key:
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install ca-certificates curl
|
|
||||||
sudo install -m 0755 -d /etc/apt/keyrings
|
|
||||||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
|
||||||
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
|
||||||
|
|
||||||
# Add the repository to Apt sources:
|
|
||||||
echo \
|
|
||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
|
||||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
|
||||||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
||||||
sudo apt-get install -y docker-compose-plugin
|
|
||||||
|
|
||||||
#---
|
|
||||||
|
|
||||||
|
|
||||||
cd /opt
|
cd /opt
|
||||||
apt update
|
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
|
apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev screen libtool swig
|
||||||
|
23
run
23
run
@ -1,28 +1,29 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ip netns add ue1
|
|
||||||
|
|
||||||
#start oran ric
|
#start oran ric
|
||||||
cd /opt/oran-sc-ric
|
cd /opt/oran-sc-ric
|
||||||
|
cd oran-sc-ric
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|
||||||
#start srsRAN 4g
|
|
||||||
sleep 15
|
|
||||||
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
|
|
||||||
|
|
||||||
# start gnb
|
# start gnb
|
||||||
cd /opt/srsRAN_Project/docker
|
cd /opt/srsRAN_Project/docker
|
||||||
docker compose up -d 5gc
|
docker compose up -d 5gc
|
||||||
cd ../build/apps/gnb
|
cd ../build/apps/gnb
|
||||||
sleep 15
|
sleep 5
|
||||||
screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
|
sudo screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
|
||||||
|
sudo ip netns add ue1
|
||||||
|
|
||||||
|
#start srsRAN 4g
|
||||||
|
sleep 5
|
||||||
|
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
|
||||||
|
|
||||||
|
|
||||||
#start ping
|
#start ping
|
||||||
sleep 15
|
sleep 5
|
||||||
LC_ALL=C screen -dmS ping ip netns exec ue1 ping -i 0.1 10.45.1.1
|
screen -dmS ping ip netns exec ue1 ping -i 0,1 10.45.1.1
|
||||||
|
|
||||||
#start xapp
|
#start xapp
|
||||||
sleep 15
|
sleep 5
|
||||||
cd /opt/oran-sc-ric
|
cd /opt/oran-sc-ric
|
||||||
screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl
|
screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user