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
This commit is contained in:
22
build-ns-o-ran.sh
Executable file
22
build-ns-o-ran.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user