colosseum-near-rt-ric/build-ns-o-ran.sh
Thecave3 e58988f8b9 add ns-o-ran files
new file:   Dockerfile
	new file:   build-ns-o-ran.sh
	new file:   setup-scripts/import-wines-images.sh
	new file:   setup-scripts/setup-ric-bronze.sh
	new file:   setup-scripts/start-xapp-ns-o-ran.sh
	modified:   setup-scripts/start-xapp.sh
	modified:   setup/xapp-sm-connector/src/xapp.cc
	modified:   setup/xapp-sm-connector/src/xapp.hpp
2022-11-01 18:13:33 +01:00

22 lines
532 B
Bash
Executable File

#!/bin/sh
# Script to import the base images to create the RIC containers from Wineslab Docker Hub
# This shall execute first wineslab images and ns-o-ran after
# import-wines-images.sh
# setup-ric-bronze.sh
# Build image for ns-o-ran
$SUDO docker build -t ns-o-ran -f Dockerfile .
remove_container() {
$SUDO docker inspect $1 >/dev/null 2>&1
if [ $? -eq 0 ]; then
$SUDO docker kill $1
$SUDO docker rm $1
fi
}
remove_container ns-o-ran
$SUDO docker run -d -it --network=ric --name ns-o-ran ns-o-ran