kompose 0.2.0 (new formula)
Closes #5276. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
19e8e25b4f
commit
527efc1d84
1 changed files with 20 additions and 0 deletions
20
Formula/kompose.rb
Normal file
20
Formula/kompose.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
class Kompose < Formula
|
||||
desc "Tool to move from `docker-compose` to Kubernetes"
|
||||
homepage "http://kompose.io"
|
||||
url "https://github.com/kubernetes-incubator/kompose/archive/v0.2.0.tar.gz"
|
||||
sha256 "a6be3935ff666b75ad06f389a5c23184c3c83659ae25135ab7c2c3d37b22d92d"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
mkdir_p buildpath/"src/github.com/kubernetes-incubator"
|
||||
ln_s buildpath, buildpath/"src/github.com/kubernetes-incubator/kompose"
|
||||
system "make", "bin"
|
||||
bin.install "kompose"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{bin}/kompose version")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue