Workflow for testing image changes:
-
Make local changes
-
Run
make info
to see what PROJECT you’re pointing to (and other env variables). Set as needed. -
To use gcr, run
gcloud auth login
to generate access token which you can see atgcloud auth print-access-token
-
Run
docker login -e michelle@deis.com -u _token -p “$(gcloud auth print-access-token)” https://gcr.io
(This will let you push images to gcr.) -
Run
make container container-push
. (This will build image, then push image to registry). -
Replace container reference with image reference that you’re testing against in install.yaml.
-
Deploy to kubernetes using the install.yam:
kubectl -f create install.yaml
ormake kube-install
Additionally,
-
Inspect all resources in the dm namespace on the running cluster with
make kube-view
. -
Delete dm resources on cluster with
make kube-delete
. -
Install dm resources on cluster with
make kube-install
.
Finally,
run local tests using make test
.