Update test env to remove '-' in ric hostnames
[nonrtric.git] / test / prodstub / prod-stub-build-start.sh
index 7f111b6..89cc967 100755 (executable)
@@ -19,6 +19,9 @@
 
 #Builds the producer stub container and starts it in interactive mode
 
-docker build -t producer-stub .
+NAME="producer-stub-test"
+IMAGE_NAME="producer-stub-test-image"
 
-docker run -it -p 8092:8092 -p 8093:8093 --name producer-stub producer-stub
+docker build --build-arg NEXUS_PROXY_REPO=nexus3.onap.org:10001/ -t $IMAGE_NAME .
+
+docker run --rm -it -p 8992:8092 -p 8993:8093 --name $NAME $IMAGE_NAME