Update a1-interface with nginx to support https
[sim/a1-interface.git] / near-rt-ric-simulator / test / STD_1.1.3 / build_and_start.sh
index 1dcacc4..0d48fbf 100755 (executable)
 #
 
 # Script to build and start the container
-# Args: nonsecure|secure
-
-if [ $# -ne 1 ]; then
-    echo "Usage: ./build_and_start.sh nonsecure|secure"
-    exit 1
-fi
-if [ "$1" != "nonsecure" ] && [ "$1" != "secure" ]; then
-    echo "Usage: ./build_and_start.sh nonsecure|secure"
-    exit 1
-fi
 
 echo "Building image"
 cd ../../
@@ -35,11 +25,6 @@ cd ../../
 #Build the image
 docker build -t a1test .
 
-echo "Starting $1 mode"
-if [ $1 == "nonsecure" ]; then
-    #Run the container in interactive mode, unsecure port
-    docker run -it -p 8085:8085 -e A1_VERSION=STD_1.1.3 -e REMOTE_HOSTS_LOGGING=1 a1test
-else
-    #Run the container in interactive mode, secure port.
-    docker run -it -p 8185:8185 -e A1_VERSION=STD_1.1.3 -e REMOTE_HOSTS_LOGGING=1 --read-only --volume "$PWD/certificate:/usr/src/app/cert" a1test
-fi
\ No newline at end of file
+echo "Starting ric-sim"
+#Run the container in interactive mode, unsecure port 8085, secure port 8185
+docker run -it -p 8085:8085 -p 8185:8185 -e A1_VERSION=STD_1.1.3 -e REMOTE_HOSTS_LOGGING=1 --volume "$PWD/certificate:/usr/src/app/cert" a1test
\ No newline at end of file