X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=near-rt-ric-simulator%2Ftest%2FOSC_2.1.0%2Fbuild_and_start.sh;h=f376971f49e6ccc6be191a844b9a71490f2a8796;hb=967079bda24e7a0f5268728f1474ce0ddc9e52d0;hp=afa56090947501c787e9632b60b86db9a027cc77;hpb=21be2e0c890fb9604d0add2942fcff19b6fe2fb2;p=sim%2Fa1-interface.git diff --git a/near-rt-ric-simulator/test/OSC_2.1.0/build_and_start.sh b/near-rt-ric-simulator/test/OSC_2.1.0/build_and_start.sh index afa5609..f376971 100755 --- a/near-rt-ric-simulator/test/OSC_2.1.0/build_and_start.sh +++ b/near-rt-ric-simulator/test/OSC_2.1.0/build_and_start.sh @@ -17,14 +17,18 @@ # ============LICENSE_END================================================= # -#Script to build and start the container - +# Script to build and start the container +echo "Building image" cd ../../ #Build the image docker build -t a1test . -#Run the container in interactive mode -docker run -it -p 8085:8085 -e A1_VERSION=OSC_2.1.0 a1test +docker stop a1OscSimulator > /dev/null 2>&1 +docker rm -f a1OscSimulator > /dev/null 2>&1 + +echo "Starting $1 mode" +#Run the container in interactive mode, unsecure port 8085, secure port 8185. +docker run -it -p 8085:8085 -p 8185:8185 -e A1_VERSION=OSC_2.1.0 -e ALLOW_HTTP=true -e REMOTE_HOSTS_LOGGING=1 --volume "$PWD/certificate:/usr/src/app/cert" --name a1OscSimulator a1test