Update a1-interface with nginx to support https
[sim/a1-interface.git] / near-rt-ric-simulator / test / OSC_2.1.0 / build_and_start.sh
index afa5609..9537d30 100755 (executable)
 #  ============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
+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 REMOTE_HOSTS_LOGGING=1 --volume "$PWD/certificate:/usr/src/app/cert" a1test