Add docker support
This commit is contained in:
parent
554519d5ea
commit
3cd69cbe69
|
@ -27,3 +27,5 @@ archive:
|
|||
replacements:
|
||||
arm64: arm8
|
||||
format: tgz
|
||||
dockers:
|
||||
- image: cjbassi/gotop
|
||||
|
|
8
Dockerfile
Normal file
8
Dockerfile
Normal 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"]
|
10
README.md
10
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user