dockertop 1.0.0
htop-style view of Docker containers and the processes inside them.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Homebrew formula template for dockertop. `make brew-formula` fills in the
|
||||
# version and the checksum of the GitHub source tarball and writes the
|
||||
# result to bin/homebrew/dockertop.rb; copy that into your tap
|
||||
# (github.com/andydixon/homebrew-tap, Formula/dockertop.rb).
|
||||
class Dockertop < Formula
|
||||
desc "Htop-style view of Docker containers and the processes inside them"
|
||||
homepage "https://github.com/andydixon/dockertop"
|
||||
url "https://github.com/andydixon/dockertop/archive/refs/tags/v@VERSION@.tar.gz"
|
||||
sha256 "@SHA256@"
|
||||
license "GPL-3.0-or-later"
|
||||
head "https://github.com/andydixon/dockertop.git", branch: "master"
|
||||
|
||||
depends_on "go" => :build
|
||||
depends_on :linux
|
||||
|
||||
def install
|
||||
system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version}")
|
||||
man1.install "docs/dockertop.1"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{bin}/dockertop --version")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user