Skip to content

Commit

Permalink
Merge pull request #143 from Shopify/dev
Browse files Browse the repository at this point in the history
Add a dev.yml which uses dev's minikube support to get Shopify employees set up quickly
  • Loading branch information
KnVerey committed Sep 28, 2017
2 parents d6eacba + 3ccbd50 commit 7da5ab3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ Based on this specification `kubernetes-run` will create a new pod with the entr

## Setup

If you work for Shopify, just run `dev up`, but otherwise:

1. [Install kubectl version 1.6.0 or higher](https://kubernetes.io/docs/user-guide/prereqs/) and make sure it is in your path
2. [Install minikube](https://kubernetes.io/docs/getting-started-guides/minikube/#installation) (required to run the test suite)
3. Check out the repo
Expand Down
22 changes: 22 additions & 0 deletions dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: kubernetes-deploy
up:
- ruby: 2.3.3
- bundler
- homebrew:
- Caskroom/cask/minikube
- custom:
name: Minikube Cluster
met?: test $(minikube status | grep Running | wc -l) -eq 2 && $(minikube status | grep -q 'Correctly Configured')
meet: minikube start --vm-driver=xhyve --kubernetes-version=v1.7.5
down: minikube stop
commands:
reset-minikube: minikube delete && rm -rf ~/.minikube
test:
run: bundle exec rake test
tophat:
run: PRINT_LOGS=1 bundle exec ruby -I test test/integration/kubernetes_deploy_test.rb -n/${1}/
desc: Tophat a change by running a test scenario with logging output enabled.
syntax:
optional:
argument: TEST_REGEX

0 comments on commit 7da5ab3

Please sign in to comment.