2019-02-27 20:03:26 +00:00
|
|
|
class Dockerize < Formula
|
|
|
|
desc "Utility to simplify running applications in docker containers"
|
|
|
|
homepage "https://github.com/jwilder/dockerize"
|
|
|
|
url "https://github.com/jwilder/dockerize.git",
|
|
|
|
:tag => "v0.6.1",
|
|
|
|
:revision => "7c5cd7c34dcf1c81f6b4db132ebceabdaae17153"
|
|
|
|
|
2019-02-27 20:15:02 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "94d889365e9e7c502449a79a431e4731faec239a1d2b18f65bf204671890f285" => :mojave
|
|
|
|
sha256 "3a88ca84f7279093a08fda378d2e502de8f3e255a9cd36480473b4c22972854e" => :high_sierra
|
|
|
|
sha256 "94083315a1f3b4e812d0468603900c691ab28d8c16762574c87a922863628b29" => :sierra
|
|
|
|
end
|
|
|
|
|
2019-02-27 20:03:26 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
(buildpath/"src/github.com/jwilder/dockerize").install buildpath.children
|
|
|
|
ENV.append_path "PATH", buildpath/"bin"
|
|
|
|
cd "src/github.com/jwilder/dockerize" do
|
|
|
|
system "make", "dist"
|
|
|
|
bin.install "dist/darwin/amd64/dockerize"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/dockerize", "-wait", "http://www.google.com", "-wait-retry-interval=1s", "-timeout", "5s"
|
|
|
|
end
|
|
|
|
end
|