docker2aci 0.16.0 (new formula)
docker2aci v0.16.0 Closes #14526. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
parent
8d4d934e6b
commit
ee2a60b0c5
1 changed files with 22 additions and 0 deletions
22
Formula/docker2aci.rb
Normal file
22
Formula/docker2aci.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
class Docker2aci < Formula
|
||||
desc "Library and CLI tool to convert Docker images to ACIs"
|
||||
homepage "https://github.com/appc/docker2aci"
|
||||
url "https://github.com/appc/docker2aci/archive/v0.16.0.tar.gz"
|
||||
sha256 "7a8abe8b809a0dcf7a583c6a8ba8232eedb97d30750fa4b4f0620e9db6e504fb"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
(buildpath/"src/github.com/appc").mkpath
|
||||
ln_s buildpath, buildpath/"src/github.com/appc/docker2aci"
|
||||
system "go", "build", "-o", bin/"docker2aci", "-ldflags",
|
||||
"-X github.com/appc/docker2aci/lib.Version=#{version}",
|
||||
"github.com/appc/docker2aci"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{bin}/docker2aci -version")
|
||||
system "#{bin}/docker2aci", "docker://busybox"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue