diff --git a/demo/cmd/bookbuyer/bookbuyer.go b/demo/cmd/bookbuyer/bookbuyer.go index 5523c92c35..21f36427fc 100644 --- a/demo/cmd/bookbuyer/bookbuyer.go +++ b/demo/cmd/bookbuyer/bookbuyer.go @@ -28,7 +28,7 @@ var ( booksBoughtV1 int64 booksBoughtV2 int64 log = logger.NewPretty(participantName) - port = flag.Int("port", 80, "port on which this app is listening for incoming HTTP") + port = flag.Int("port", 8080, "port on which this app is listening for incoming HTTP") path = flag.String("path", ".", "path to the HTML template") numConnectionsStr = utils.GetEnv("CI_CLIENT_CONCURRENT_CONNECTIONS", "1") ) diff --git a/demo/cmd/bookstore/bookstore.go b/demo/cmd/bookstore/bookstore.go index 7ff3e8a253..544b656164 100644 --- a/demo/cmd/bookstore/bookstore.go +++ b/demo/cmd/bookstore/bookstore.go @@ -23,7 +23,7 @@ var ( booksSold int64 = 0 log = logger.NewPretty("bookstore") identity = flag.String("ident", "unidentified", "the identity of the container where this demo app is running (VM, K8s, etc)") - port = flag.Int("port", 80, "port on which this app is listening for incoming HTTP") + port = flag.Int("port", 8080, "port on which this app is listening for incoming HTTP") path = flag.String("path", ".", "path to the HTML template") ) diff --git a/demo/cmd/bookthief/bookthief.go b/demo/cmd/bookthief/bookthief.go index e4bbd09bbc..bbf49da017 100644 --- a/demo/cmd/bookthief/bookthief.go +++ b/demo/cmd/bookthief/bookthief.go @@ -25,7 +25,7 @@ var ( booksStolenV1 int64 booksStolenV2 int64 log = logger.NewPretty(participantName) - port = flag.Int("port", 80, "port on which this app is listening for incoming HTTP") + port = flag.Int("port", 8080, "port on which this app is listening for incoming HTTP") path = flag.String("path", ".", "path to the HTML template") ) diff --git a/demo/cmd/bookwarehouse/bookwarehouse.go b/demo/cmd/bookwarehouse/bookwarehouse.go index 214ea2dfca..71ac6c233c 100644 --- a/demo/cmd/bookwarehouse/bookwarehouse.go +++ b/demo/cmd/bookwarehouse/bookwarehouse.go @@ -16,7 +16,7 @@ import ( var ( log = logger.NewPretty("bookwarehouse") identity = flag.String("ident", "unidentified", "the identity of the container where this demo app is running (VM, K8s, etc)") - port = flag.Int("port", 80, "port on which this app is listening for incoming HTTP") + port = flag.Int("port", 8080, "port on which this app is listening for incoming HTTP") totalBooks = 0 ) diff --git a/demo/cmd/common/books.go b/demo/cmd/common/books.go index ca6eb2eb86..52a7a593a4 100644 --- a/demo/cmd/common/books.go +++ b/demo/cmd/common/books.go @@ -19,7 +19,7 @@ const ( RestockWarehouseURL = "restock-books" // bookstorePort is the bookstore service's port - bookstorePort = 80 + bookstorePort = 8080 httpPrefix = "http://" diff --git a/demo/deploy-bookbuyer.sh b/demo/deploy-bookbuyer.sh index b6f15d2a7e..bc09faf921 100755 --- a/demo/deploy-bookbuyer.sh +++ b/demo/deploy-bookbuyer.sh @@ -9,6 +9,12 @@ CI_MAX_ITERATIONS_THRESHOLD="${CI_MAX_ITERATIONS_THRESHOLD:-0}" CI_CLIENT_CONCURRENT_CONNECTIONS="${CI_CLIENT_CONCURRENT_CONNECTIONS:-1}" ENABLE_EGRESS="${ENABLE_EGRESS:-false}" CI_SLEEP_BETWEEN_REQUESTS_SECONDS="${CI_SLEEP_BETWEEN_REQUESTS_SECONDS:-1}" +ROUTES_V2="${ROUTES_V2:-false}" +DEPLOY_FOR_OPENSHIFT="${DEPLOY_FOR_OPENSHIFT:-false}" + +if [ "$ROUTES_V2" = "true" ]; then +BOOKSTORE_SVC=bookstore-v1 +fi kubectl delete deployment bookbuyer -n "$BOOKBUYER_NAMESPACE" --ignore-not-found @@ -21,6 +27,11 @@ metadata: namespace: $BOOKBUYER_NAMESPACE EOF +if [ "$DEPLOY_FOR_OPENSHIFT" = true ] ; then + oc adm policy add-scc-to-user privileged -z bookbuyer -n $BOOKBUYER_NAMESPACE + oc secrets link bookbuyer $CTR_REGISTRY_CREDS_NAME --for=pull -n $BOOKBUYER_NAMESPACE +fi + echo -e "Deploy BookBuyer Service" kubectl apply -f - <