Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #112 from GoogleCloudPlatform/OnlineBoutique
Browse files Browse the repository at this point in the history
changed hipster store to online boutique and mircroservices demo
  • Loading branch information
ann wallace authored Apr 30, 2020
2 parents 53a01a5 + 3e89687 commit 8385333
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 18 deletions.
4 changes: 2 additions & 2 deletions _helpers/deploy-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ do
kubectl --context $cluster -n istio-system get service istio-ingressgateway # don't proceed until EXTERNAL-IP is set
done

# Hipster Shop Installation
# microservices-demo (the Online Boutique) Installation

# Retrieve a needed environment variable

Expand Down Expand Up @@ -144,5 +144,5 @@ kubectl --context in-scope describe ingresses
# After ~3 minutes, The application should be accessible at $DOMAIN_NAME

curl -s -o /dev/null -I -w "%{http_code}" https://$DOMAIN_NAME # output should be 200
curl -s https://$DOMAIN_NAME | grep -q "One-stop for Hipster Fashion" ; echo $? # output should be 0
curl -s https://$DOMAIN_NAME | grep -q "Online Boutique" ; echo $? # output should be 0
curl -Is http://$DOMAIN_NAME | head -1 # output should be "HTTP/1.1 301 Moved Permanently"
10 changes: 5 additions & 5 deletions docs/deploy-application.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Deploying the Microservices-Demo Application
# Deploying the microservices-demo (Online Boutique) Application

This is a walkthrough of the steps included in `./_helpers/deploy-app.sh`

Expand All @@ -10,9 +10,9 @@ This diagram illustrates the different projects that have been created and which

## Prepare Application Deployment

The application to be deployed here is named microservices-demo, which implements a mock ecommerce application called the [Hipster Store](https://github.com/GoogleCloudPlatform/microservices-demo)
The application to be deployed here is the [Online Boutique](https://github.com/GoogleCloudPlatform/microservices-demo), a mock e-commerce application.

In this section, we'll deploy a custom version of this Hipster Store that
In this section, we'll deploy a custom version of the Online Boutique that
separates any microservices that interact with Cardholder Data (in-scope) from those that
don't (out-of-scope).

Expand Down Expand Up @@ -121,7 +121,7 @@ do
done
```

# Hipster Shop Installation
# microservices-demo Installation

## Retrieve a needed environment variable

Expand Down Expand Up @@ -240,7 +240,7 @@ Once the certificate has been successfuly provisioned, the application should be

```sh
curl -s -o /dev/null -I -w "%{http_code}" https://$DOMAIN_NAME # output should be 200
curl -s http://$DOMAIN_NAME | grep -q "One-stop for Hipster Fashion" ; echo $? # output should be 0
curl -s http://$DOMAIN_NAME | grep -q "Online Boutique" ; echo $? # output should be 0
```

# Istio Implementation
Expand Down
4 changes: 2 additions & 2 deletions k8s/helm/in-scope-microservices/templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
spec:
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/checkoutservice:{{ .Values.microservices_demo_version }}
ports:
- containerPort: 5050
readinessProbe:
Expand Down Expand Up @@ -142,7 +142,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/paymentservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/paymentservice:{{ .Values.microservices_demo_version }}
ports:
- containerPort: 50051
env:
Expand Down
3 changes: 2 additions & 1 deletion k8s/helm/in-scope-microservices/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.

frontend_security_policy: frontend-application-security-policy
frontend_image: gcr.io/pci-gke-blueprint/microservices-demo/frontend:v0.1.4-2020-04-24-1414
frontend_image: gcr.io/pci-gke-blueprint/microservices-demo/frontend:v0.2.0-2020-04-30-1728
microservices_demo_version: v0.2.0

# Required to be supplied:
# out_of_scope_ingress_gateway_ip_address: 172.16.4.9
Expand Down
14 changes: 7 additions & 7 deletions k8s/helm/out-of-scope-microservices/templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/adservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/adservice:{{ .Values.microservices_demo_version }}
ports:
- containerPort: 9555
env:
Expand Down Expand Up @@ -70,7 +70,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/cartservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/cartservice:{{ .Values.microservices_demo_version }}
ports:
- containerPort: 7070
env:
Expand Down Expand Up @@ -113,7 +113,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/currencyservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/currencyservice:{{ .Values.microservices_demo_version }}
ports:
- name: grpc
containerPort: 7000
Expand Down Expand Up @@ -150,7 +150,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/emailservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/emailservice:{{ .Values.microservices_demo_version }}
ports:
- containerPort: 8080
readinessProbe:
Expand Down Expand Up @@ -185,7 +185,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/productcatalogservice:{{ .Values.microservices_demo_version }}
ports:
- containerPort: 3550
readinessProbe:
Expand Down Expand Up @@ -222,7 +222,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/recommendationservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/recommendationservice:{{ .Values.microservices_demo_version }}
ports:
- containerPort: 8080
readinessProbe:
Expand Down Expand Up @@ -259,7 +259,7 @@ spec:
spec:
containers:
- name: server
image: gcr.io/google-samples/microservices-demo/shippingservice:v0.1.4
image: gcr.io/google-samples/microservices-demo/shippingservice:{{ .Values.microservices_demo_version }}
ports:
- containerPort: 50051
readinessProbe:
Expand Down
2 changes: 2 additions & 0 deletions k8s/helm/out-of-scope-microservices/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@
# Default values for out-of-scope-microservices.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

microservices_demo_version: v0.2.0
2 changes: 1 addition & 1 deletion microservices-demo/frontend/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Builds and pushes a customized frontend image

MICROSERVICES_DEMO_RELEASE_TAG="v0.1.4"
MICROSERVICES_DEMO_RELEASE_TAG="v0.2.0"
MICROSERVICES_DEMO_REPOSITORY="[email protected]:GoogleCloudPlatform/microservices-demo.git"
TAG="${MICROSERVICES_DEMO_RELEASE_TAG}-$(date +%Y-%m-%d-%H%M)"
APP_NAME="microservices-demo/frontend"
Expand Down

0 comments on commit 8385333

Please sign in to comment.