Skip to content

Commit b62aef4

Browse files
committed
Add a formula for linuxkit
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
1 parent 5539ef8 commit b62aef4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Formula/linuxkit.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
require "language/go"
2+
3+
class Linuxkit < Formula
4+
desc "Lightweight Linux districution tool"
5+
homepage "https://github.com/linuxkit/linuxkit"
6+
head "https://github.com/linuxkit/linuxkit.git"
7+
8+
depends_on "go" => :build
9+
10+
def install
11+
mkdir_p buildpath/"src/github.com/linuxkit"
12+
ln_s buildpath, buildpath/"src/github.com/linuxkit/linuxkit"
13+
14+
ENV["GOPATH"] = "#{buildpath}/Godeps/_workspace:#{buildpath}"
15+
16+
system "make", "local"
17+
18+
bin.install "bin/linuxkit"
19+
end
20+
21+
test do
22+
output = shell_output(bin/"moby version")
23+
assert_match "moby version", output
24+
end
25+
end

0 commit comments

Comments
 (0)