Update `gcloud docker` commands to use `gcloud docker -- ARGS`

We can then avoid the following warning:
```
WARNING: The '--' argument must be specified between gcloud specific args on the left and DOCKER_ARGS on the right. IMPORTANT: previously, commands allowed the omission of the --, and unparsed arguments were treated as implementation args. This usage is being deprecated and will be removed in March 2017.
This will be strictly enforced in March 2017. Use 'gcloud beta docker' to see new behavior.
```

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2016-10-10 13:42:29 -07:00
parent 3e15bbca79
commit 75e96fd226
7 changed files with 9 additions and 9 deletions

View File

@ -22,6 +22,6 @@ image:
docker build -t $(PREFIX)/$(IMAGE):$(TAG) . docker build -t $(PREFIX)/$(IMAGE):$(TAG) .
push: image push: image
gcloud docker push $(PREFIX)/$(IMAGE) gcloud docker -- push $(PREFIX)/$(IMAGE)
clean: clean:

View File

@ -22,6 +22,6 @@ image:
docker build -t $(PREFIX)/$(IMAGE):$(TAG) . docker build -t $(PREFIX)/$(IMAGE):$(TAG) .
push: image push: image
gcloud docker push $(PREFIX)/$(IMAGE) gcloud docker -- push $(PREFIX)/$(IMAGE)
clean: clean:

View File

@ -24,7 +24,7 @@ container: explorer
docker build -t gcr.io/google_containers/explorer:$(TAG) . docker build -t gcr.io/google_containers/explorer:$(TAG) .
push: container push: container
gcloud docker push gcr.io/google_containers/explorer:$(TAG) gcloud docker -- push gcr.io/google_containers/explorer:$(TAG)
clean: clean:
rm -f explorer rm -f explorer

View File

@ -28,7 +28,7 @@ build:
# push the image to an registry # push the image to an registry
push: push:
gcloud docker push ${REGISTRY}/guestbook:${VERSION} gcloud docker -- push ${REGISTRY}/guestbook:${VERSION}
# remove previous images and containers # remove previous images and containers
clean: clean:

View File

@ -41,7 +41,7 @@ container:
push: container push: container
$(if $(TAG),,$(error TAG is not defined. Use 'make tag' to see a suggestion)) $(if $(TAG),,$(error TAG is not defined. Use 'make tag' to see a suggestion))
gcloud docker push gcr.io/google_containers/kubectl:$(TAG) gcloud docker -- push gcr.io/google_containers/kubectl:$(TAG)
clean: clean:
rm -f kubectl rm -f kubectl

View File

@ -131,7 +131,7 @@ your app image with your project ID, and push to GCR. Replace
``` ```
docker tag my-meteor gcr.io/<project>/my-meteor docker tag my-meteor gcr.io/<project>/my-meteor
gcloud docker push gcr.io/<project>/my-meteor gcloud docker -- push gcr.io/<project>/my-meteor
``` ```
Running Running

View File

@ -29,6 +29,6 @@ build: kubernetes-cassandra.jar
docker build -t ${PROJECT}/cassandra:${VERSION} . docker build -t ${PROJECT}/cassandra:${VERSION} .
push: build push: build
gcloud docker push ${PROJECT}/cassandra:${VERSION} gcloud docker -- push ${PROJECT}/cassandra:${VERSION}
.PHONY: all build push .PHONY: all build push