homebrew-core/Formula/minikube.rb

44 lines
1.3 KiB
Ruby
Raw Normal View History

class Minikube < Formula
desc "Run a Kubernetes cluster locally"
homepage "https://minikube.sigs.k8s.io/"
url "https://github.com/kubernetes/minikube.git",
:tag => "v1.5.0",
:revision => "d1151d93385a70c5a03775e166e94067791fe2d9"
head "https://github.com/kubernetes/minikube.git"
2019-10-26 04:44:14 +00:00
bottle do
cellar :any_skip_relocation
sha256 "4a338e3dd7b93c305fb58976db59b4b9549d264da078352c5afd3c525dafa172" => :catalina
sha256 "157d59038a69e69178185216cf9bc0f06f7d029ed31ee8598da72f98f367b86c" => :mojave
sha256 "1e7bcf26eda3e43d0632932f090c1d58c3250b5266b1e2f770ef289b00e4e649" => :high_sierra
end
depends_on "go" => :build
depends_on "go-bindata" => :build
depends_on "kubernetes-cli"
def install
system "make"
bin.install "out/minikube"
output = Utils.popen_read("#{bin}/minikube completion bash")
(bash_completion/"minikube").write output
output = Utils.popen_read("#{bin}/minikube completion zsh")
(zsh_completion/"_minikube").write output
end
test do
output = shell_output("#{bin}/minikube version")
assert_match "version: v#{version}", output
(testpath/".minikube/config/config.json").write <<~EOS
{
"vm-driver": "virtualbox"
}
EOS
output = shell_output("#{bin}/minikube config view")
assert_match "vm-driver: virtualbox", output
end
end