Skip to content

Commit

Permalink
Upstream changes (#5)
Browse files Browse the repository at this point in the history
* cleanup: add region tags to yaml and sh (GoogleCloudPlatform#684)

* Added region tags to yaml and sh, edited the asm and gke files

* Fix skaffold artifacts

* make-release adds region tag to istio and k8 manifest

* Addressed comments, changed gke to container per discussion

* Replaced instances of container with gke, discarded uncessecary white space changes

* Remove changes in github workflow, captured cloudbuild yaml tag

* Bump node-fetch from 2.6.6 to 2.6.7 in /src/paymentservice (GoogleCloudPlatform#707)

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](node-fetch/node-fetch@v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump node-fetch from 2.6.6 to 2.6.7 in /src/currencyservice (GoogleCloudPlatform#708)

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](node-fetch/node-fetch@v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shabir Mohamed Abdul Samadh <[email protected]>

Co-authored-by: Christine Kim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shabir Mohamed Abdul Samadh <[email protected]>
  • Loading branch information
4 people authored Feb 5, 2022
1 parent 0b80d95 commit 96ea9eb
Show file tree
Hide file tree
Showing 15 changed files with 230 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/snippet-bot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2022 Google LLC

# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -10,4 +11,4 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ jobs:
-H "Content-Type: application/json" \
-H "Authorization: token $GITHUB_TOKEN" \
--data '{ "body": "🚲 PR staged at '"http://${EXTERNAL_IP}"'"}'
sleep 60
sleep 60
4 changes: 4 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START cloudbuild_microservice_demo_cloudbuild]

# This configuration file is used to build and deploy the app into a
# GKE cluster using Google Cloud Build.
#
Expand All @@ -37,3 +39,5 @@ steps:
timeout: '3600s'
options:
machineType: 'N1_HIGHCPU_8'

# [END cloudbuild_microservice_demo_cloudbuild]
4 changes: 4 additions & 0 deletions hack/make-release-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,17 @@ mk_kubernetes_manifests() {

print_license_header
print_autogenerated_warning
echo '# [START gke_release_kubernetes_manifests_microservices_demo]'
echo "${out_manifest}"
echo "# [END gke_release_kubernetes_manifests_microservices_demo]"
}

mk_istio_manifests() {
print_license_header
print_autogenerated_warning
echo '# [START servicemesh_release_istio_manifests_microservices_demo]'
read_manifests "${SCRIPTDIR}/../istio-manifests"
echo '# [END servicemesh_release_istio_manifests_microservices_demo]'
}

main() {
Expand Down
3 changes: 3 additions & 0 deletions src/adservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_adservice_genproto]
# protos are needed in adservice folder for compiling during Docker build.

mkdir -p proto && \
cp ../../pb/demo.proto src/main/proto

# [END gke_adservice_genproto]
4 changes: 4 additions & 0 deletions src/checkoutservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_checkoutservice_genproto]

PATH=$PATH:$GOPATH/bin
protodir=../../pb

protoc --go-grpc_out=. --go_out=. -I $protodir $protodir/demo.proto

# [END gke_checkoutservice_genproto]
4 changes: 4 additions & 0 deletions src/currencyservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_currencyservice_genproto]

# protos are loaded dynamically for node, simply copies over the proto.
mkdir -p proto
cp -r ../../pb/* ./proto

# [END gke_currencyservice_genproto]
128 changes: 128 additions & 0 deletions src/currencyservice/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/emailservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_emailservice_genproto]

python -m grpc_tools.protoc -I../../pb --python_out=. --grpc_python_out=. ../../pb/demo.proto

# [END gke_emailservice_genproto]
6 changes: 5 additions & 1 deletion src/frontend/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_frontend_genproto]

PATH=$PATH:$GOPATH/bin
protodir=../../pb

protoc --go-grpc_out=. --go_out=. -I $protodir $protodir/demo.proto
protoc --go-grpc_out=. --go_out=. -I $protodir $protodir/demo.proto

# [END gke_frontend_genproto]
4 changes: 4 additions & 0 deletions src/paymentservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_paymentservice_genproto]

# protos are loaded dynamically for node, simply copies over the proto.
mkdir -p proto
cp -r ../../pb/* ./proto

# [END gke_paymentservice_genproto]
54 changes: 54 additions & 0 deletions src/paymentservice/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/productcatalogservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_productcatalogservice_genproto]

PATH=$PATH:$GOPATH/bin
protodir=../../pb

protoc --go-grpc_out=. --go_out=. -I $protodir $protodir/demo.proto

# [END gke_productcatalogservice_genproto]
4 changes: 4 additions & 0 deletions src/recommendationservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_recommendationservice_genproto]

# script to compile python protos
#
# requires gRPC tools:
# pip install -r requirements.txt

python -m grpc_tools.protoc -I../../pb --python_out=. --grpc_python_out=. ../../pb/demo.proto

# [END gke_recommendationservice_genproto]
4 changes: 4 additions & 0 deletions src/shippingservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gke_shippingservice_genproto]

PATH=$PATH:$GOPATH/bin
protodir=../../pb

protoc --go-grpc_out=. --go_out=. -I $protodir $protodir/demo.proto

# [END gke_shippingservice_genproto]

0 comments on commit 96ea9eb

Please sign in to comment.