Add docker support

This commit is contained in:
Caleb Bassi 2018-05-04 16:47:42 -07:00
parent 554519d5ea
commit 3cd69cbe69
3 changed files with 19 additions and 1 deletions

View File

@ -27,3 +27,5 @@ archive:
replacements:
arm64: arm8
format: tgz
dockers:
- image: cjbassi/gotop

8
Dockerfile Normal file
View File

@ -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"]

View File

@ -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