summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.goreleaser.yml2
-rw-r--r--Dockerfile8
-rw-r--r--README.md10
3 files changed, 19 insertions, 1 deletions
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:
+# <CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .>
+
+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