File tree 13 files changed +47
-3
lines changed
13 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 1
- # Copyright 2022 Google LLC
1
+
2
+ # Copyright 2021 Google LLC
2
3
#
3
4
# Licensed under the Apache License, Version 2.0 (the "License");
4
5
# you may not use this file except in compliance with the License.
10
11
# distributed under the License is distributed on an "AS IS" BASIS,
11
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
13
# See the License for the specific language governing permissions and
13
- # limitations under the License.
14
+ # limitations under the License.
Original file line number Diff line number Diff line change @@ -141,4 +141,4 @@ jobs:
141
141
-H "Content-Type: application/json" \
142
142
-H "Authorization: token $GITHUB_TOKEN" \
143
143
--data '{ "body": "🚲 PR staged at '"http://${EXTERNAL_IP}"'"}'
144
- sleep 60
144
+ sleep 60
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ # [START cloudbuild_microservice_demo_cloudbuild]
16
+
15
17
# This configuration file is used to build and deploy the app into a
16
18
# GKE cluster using Google Cloud Build.
17
19
#
37
39
timeout : ' 3600s'
38
40
options :
39
41
machineType : ' N1_HIGHCPU_8'
42
+
43
+ # [END cloudbuild_microservice_demo_cloudbuild]
Original file line number Diff line number Diff line change @@ -76,13 +76,17 @@ mk_kubernetes_manifests() {
76
76
77
77
print_license_header
78
78
print_autogenerated_warning
79
+ echo ' # [START gke_release_kubernetes_manifests_microservices_demo]'
79
80
echo " ${out_manifest} "
81
+ echo " # [END gke_release_kubernetes_manifests_microservices_demo]"
80
82
}
81
83
82
84
mk_istio_manifests () {
83
85
print_license_header
84
86
print_autogenerated_warning
87
+ echo ' # [START servicemesh_release_istio_manifests_microservices_demo]'
85
88
read_manifests " ${SCRIPTDIR} /../istio-manifests"
89
+ echo ' # [END servicemesh_release_istio_manifests_microservices_demo]'
86
90
}
87
91
88
92
main () {
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_adservice_genproto]
17
18
# protos are needed in adservice folder for compiling during Docker build.
18
19
19
20
mkdir -p proto && \
20
21
cp ../../pb/demo.proto src/main/proto
22
+
23
+ # [END gke_adservice_genproto]
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_checkoutservice_genproto]
18
+
17
19
PATH=$PATH :$GOPATH /bin
18
20
protodir=../../pb
19
21
20
22
protoc --go_out=plugins=grpc:genproto -I $protodir $protodir /demo.proto
23
+
24
+ # [END gke_checkoutservice_genproto]
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_currencyservice_genproto]
18
+
17
19
# protos are loaded dynamically for node, simply copies over the proto.
18
20
mkdir -p proto
19
21
cp -r ../../pb/* ./proto
22
+
23
+ # [END gke_currencyservice_genproto]
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_emailservice_genproto]
18
+
17
19
python -m grpc_tools.protoc -I../../pb --python_out=. --grpc_python_out=. ../../pb/demo.proto
20
+
21
+ # [END gke_emailservice_genproto]
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_frontend_genproto]
18
+
17
19
PATH=$PATH :$GOPATH /bin
18
20
protodir=../../pb
19
21
20
22
protoc --go_out=plugins=grpc:genproto -I $protodir $protodir /demo.proto
23
+
24
+ # [END gke_frontend_genproto]
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_paymentservice_genproto]
18
+
17
19
# protos are loaded dynamically for node, simply copies over the proto.
18
20
mkdir -p proto
19
21
cp -r ../../pb/* ./proto
22
+
23
+ # [END gke_paymentservice_genproto]
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_productcatalogservice_genproto]
18
+
17
19
PATH=$PATH :$GOPATH /bin
18
20
protodir=../../pb
19
21
20
22
protoc --go_out=plugins=grpc:genproto -I $protodir $protodir /demo.proto
23
+
24
+ # [END gke_productcatalogservice_genproto]
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_recommendationservice_genproto]
18
+
17
19
# script to compile python protos
18
20
#
19
21
# requires gRPC tools:
20
22
# pip install -r requirements.txt
21
23
22
24
python -m grpc_tools.protoc -I../../pb --python_out=. --grpc_python_out=. ../../pb/demo.proto
25
+
26
+ # [END gke_recommendationservice_genproto]
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+ # [START gke_shippingservice_genproto]
18
+
17
19
PATH=$PATH :$GOPATH /bin
18
20
protodir=../../pb
19
21
20
22
protoc --go_out=plugins=grpc:genproto -I $protodir $protodir /demo.proto
23
+
24
+ # [END gke_shippingservice_genproto]
You can’t perform that action at this time.
0 commit comments