Skip to content

Commit 48ad2d7

Browse files
dat-borisengelke
authored andcommitted
Fix up makefile for build and updates (#1526)
* Fix up makefile for build and updates * Fix create-cluster command
1 parent c9bc060 commit 48ad2d7

File tree

1 file changed

+4
-4
lines changed
  • container_engine/django_tutorial

1 file changed

+4
-4
lines changed

container_engine/django_tutorial/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ all: deploy
66
.PHONY: create-cluster
77
create-cluster:
88
gcloud container clusters create polls \
9-
--scope "https://www.googleapis.com/auth/userinfo.email","cloud-platform"
9+
--scopes "https://www.googleapis.com/auth/userinfo.email","cloud-platform"
1010

1111
.PHONY: create-bucket
1212
create-bucket:
1313
gsutil mb gs://$(GCLOUD_PROJECT)
14-
gsutil defacl set public-read gs://$(GCLOUD_PROJECT)
14+
gsutil defacl set public-read gs://$(GCLOUD_PROJECT)
1515

1616
.PHONY: build
1717
build:
1818
docker build -t gcr.io/$(GCLOUD_PROJECT)/polls .
1919

2020
.PHONY: push
2121
push: build
22-
gcloud docker push gcr.io/$(GCLOUD_PROJECT)/polls
22+
gcloud docker push -- gcr.io/$(GCLOUD_PROJECT)/polls
2323

2424
.PHONY: template
2525
template:
@@ -31,7 +31,7 @@ deploy: push template
3131

3232
.PHONY: update
3333
update:
34-
kubectl rolling-update polls --image=gcr.io/${GCLOUD_PROJECT}/polls
34+
kubectl patch deployment polls -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"date\":\"`date +'%s'`\"}}}}}"
3535

3636
.PHONY: delete
3737
delete:

0 commit comments

Comments
 (0)