forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker110.rb
More file actions
49 lines (38 loc) · 1.61 KB
/
docker110.rb
File metadata and controls
49 lines (38 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
class Docker110 < Formula
desc "Pack, ship and run any application as a lightweight container"
homepage "https://www.docker.com/"
url "https://github.com/docker/docker.git",
:tag => "v1.10.3",
:revision => "20f81dde9bd97c86b2d0e33bbbf1388018611929"
head "https://github.com/docker/docker.git"
bottle do
cellar :any_skip_relocation
sha256 "8a7d140e71f3f4b0f41849dc765f1e32b83622ebb7132e934a2368311b97f7ec" => :el_capitan
sha256 "eab150519ddfe8a3e078f41460b62591a5edd80e74ead9929624dd074f5d9e41" => :yosemite
sha256 "4ab7b3974aa60b242c0424e7e79b50f9d8997d2b86b5eecd747a84594483db15" => :mavericks
end
option "with-experimental", "Enable experimental features"
option "without-completions", "Disable bash/zsh completions"
depends_on "go" => :build
conflicts_with "docker", :because => "Differing version of the same formula"
if build.with? "experimental"
depends_on "libtool" => :run
depends_on "yubico-piv-tool" => :recommended
end
def install
ENV["AUTO_GOPATH"] = "1"
ENV["DOCKER_CLIENTONLY"] = "1"
ENV["DOCKER_EXPERIMENTAL"] = "1" if build.with? "experimental"
system "hack/make.sh", "dynbinary"
build_version = build.head? ? File.read("VERSION").chomp : version
bin.install "bundles/#{build_version}/dynbinary/docker-#{build_version}" => "docker"
if build.with? "completions"
bash_completion.install "contrib/completion/bash/docker"
fish_completion.install "contrib/completion/fish/docker.fish"
zsh_completion.install "contrib/completion/zsh/_docker"
end
end
test do
system "#{bin}/docker", "--version"
end
end