Skip to content

Instantly share code, notes, and snippets.

@michelleN
Last active February 1, 2016 16:42
Show Gist options
  • Save michelleN/c0fa292dd50ad994ed08 to your computer and use it in GitHub Desktop.
Save michelleN/c0fa292dd50ad994ed08 to your computer and use it in GitHub Desktop.
DM Testing Workflow

Workflow for testing image changes:

  1. Make local changes

  2. Run make info to see what PROJECT you’re pointing to (and other env variables). Set as needed.

  3. To use gcr, run gcloud auth login to generate access token which you can see at gcloud auth print-access-token

  4. 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.)

  5. Run make container container-push. (This will build image, then push image to registry).

  6. Replace container reference with image reference that you’re testing against in install.yaml.

  7. Deploy to kubernetes using the install.yam: kubectl -f create install.yaml or make 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment