From 3cd69cbe69da7e59cf937197876dd097b2703e9c Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Fri, 4 May 2018 16:47:42 -0700 Subject: [PATCH] Add docker support --- .goreleaser.yml | 2 ++ Dockerfile | 8 ++++++++ README.md | 10 +++++++++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/.goreleaser.yml b/.goreleaser.yml index 25d067b..b2bbab6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,3 +27,5 @@ archive: replacements: arm64: arm8 format: tgz +dockers: + - image: cjbassi/gotop diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..88c6caf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +# Build the binary with: +# + +FROM alpine + +COPY ./gotop /gotop + +ENTRYPOINT ["/gotop"] diff --git a/README.md b/README.md index 6e88438..0bedd18 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Another terminal based graphical activity monitor, inspired by [gtop](https://gi ## Installation -Only working and tested on Linux. OSX is no longer supported due to issues with gopsutil, although that may change in the future. +Only working and tested on Linux. OSX is no longer supported due to issues with gopsutil, but that is currently being worked on. Windows support is also in the works. Go programs compile to a single binary and there are currently prebuilt ones for 32/64bit Linux and ARM Linux. @@ -38,6 +38,14 @@ Install the `gotop-bin` package from the AUR. go get github.com/cjbassi/gotop ``` +### Docker + +``` +docker run -it --rm cjbassi/gotop +``` + +Note: Process list doesn't work using Docker. + ## Usage