Skip to content

Commit faef8b8

Browse files
authored
Use skaffold modules & update docs (GoogleCloudPlatform#609)
1 parent 847bc54 commit faef8b8

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

Diff for: docs/development-guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This doc explains how to build and run the OnlineBoutique source code locally us
66

77
- [Docker for Desktop](https://www.docker.com/products/docker-desktop).
88
- kubectl (can be installed via `gcloud components install kubectl`)
9-
- [skaffold]( https://skaffold.dev/docs/install/), a tool that builds and deploys Docker images in bulk.
9+
- [skaffold **1.27+**](https://skaffold.dev/docs/install/) (latest version recommended), a tool that builds and deploys Docker images in bulk.
1010
- A Google Cloud Project with Google Container Registry enabled.
1111
- Enable GCP APIs for Cloud Monitoring, Tracing, Debugger, Profiler:
1212
```

Diff for: skaffold.yaml

+31-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
apiVersion: skaffold/v2beta1
15+
apiVersion: skaffold/v2beta18
1616
kind: Config
17+
metadata:
18+
name: app
1719
build:
1820
artifacts:
1921
# image tags are relative; to specify an image repo (e.g. GCR), you
@@ -40,8 +42,6 @@ build:
4042
dockerfile: Dockerfile
4143
- image: frontend
4244
context: src/frontend
43-
- image: loadgenerator
44-
context: src/loadgenerator
4545
- image: adservice
4646
context: src/adservice
4747
tagPolicy:
@@ -51,7 +51,17 @@ build:
5151
deploy:
5252
kubectl:
5353
manifests:
54-
- ./kubernetes-manifests/**.yaml
54+
- ./kubernetes-manifests/adservice.yaml
55+
- ./kubernetes-manifests/cartservice.yaml
56+
- ./kubernetes-manifests/checkoutservice.yaml
57+
- ./kubernetes-manifests/currencyservice.yaml
58+
- ./kubernetes-manifests/emailservice.yaml
59+
- ./kubernetes-manifests/frontend.yaml
60+
- ./kubernetes-manifests/paymentservice.yaml
61+
- ./kubernetes-manifests/productcatalogservice.yaml
62+
- ./kubernetes-manifests/recommendationservice.yaml
63+
- ./kubernetes-manifests/redis.yaml
64+
- ./kubernetes-manifests/shippingservice.yaml
5565
profiles:
5666
# "gcb" profile allows building and pushing the images
5767
# on Google Container Builder without requiring docker
@@ -78,3 +88,20 @@ profiles:
7888
- op: replace
7989
path: /build/artifacts/7/docker/dockerfile
8090
value: Dockerfile.debug
91+
92+
---
93+
94+
apiVersion: skaffold/v2beta18
95+
kind: Config
96+
metadata:
97+
name: loadgenerator
98+
requires:
99+
- configs: [app]
100+
build:
101+
artifacts:
102+
- image: loadgenerator
103+
context: src/loadgenerator
104+
deploy:
105+
kubectl:
106+
manifests:
107+
- ./kubernetes-manifests/loadgenerator.yaml

0 commit comments

Comments
 (0)