1
0
mirror of https://github.com/cjbassi/gotop.git synced 2025-05-08 19:29:44 +08:00

Remove Docker

This commit is contained in:
Caleb Bassi 2018-05-11 00:56:44 -07:00
parent 68277185e0
commit c02bf5d0ad
4 changed files with 5 additions and 20 deletions

View File

@ -27,27 +27,22 @@ git clone --depth 1 https://github.com/cjbassi/gotop /tmp/gotop
Then move `gotop` into your $PATH somewhere. Then move `gotop` into your $PATH somewhere.
### Arch Linux ### Arch Linux
Install the `gotop-bin` package from the AUR. Install the `gotop-bin` package from the AUR.
### Source ### Source
```sh ```sh
go get github.com/cjbassi/gotop go get github.com/cjbassi/gotop
``` ```
### Docker
```
docker run -it --rm cjbassi/gotop
```
Note: Process list doesn't work when running with Docker.
## Usage ## Usage
### Keybinds ### Keybinds
* Quit: `q` or `<C-c>` * Quit: `q` or `<C-c>`
@ -65,6 +60,7 @@ Note: Process list doesn't work when running with Docker.
* `h` and `l`: zoom in and out of CPU and Mem graphs * `h` and `l`: zoom in and out of CPU and Mem graphs
* `?`: toggles keybind help menu * `?`: toggles keybind help menu
### Mouse ### Mouse
* click to select process * click to select process
@ -80,6 +76,7 @@ You can use 256 colors, bold, underline, and reverse.
You can see the template and get more info [here](https://github.com/cjbassi/gotop/blob/master/src/colorschemes/template.go) You can see the template and get more info [here](https://github.com/cjbassi/gotop/blob/master/src/colorschemes/template.go)
and see the default colorscheme as an example [here](https://github.com/cjbassi/gotop/blob/master/src/colorschemes/default.go). and see the default colorscheme as an example [here](https://github.com/cjbassi/gotop/blob/master/src/colorschemes/default.go).
### CLI Options ### CLI Options
`-m`, `--minimal` Only show CPU, Mem and Process widgets. `-m`, `--minimal` Only show CPU, Mem and Process widgets.

View File

@ -18,6 +18,3 @@ archive:
format: tgz format: tgz
files: files:
- none* - none*
dockers:
- image: cjbassi/gotop
- dockerfile: build/Dockerfile

View File

@ -1,8 +0,0 @@
# Build the binary with:
# <CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .>
FROM alpine
COPY ./gotop /gotop
ENTRYPOINT ["/gotop"]

View File

@ -1,6 +1,5 @@
make sure gotop builds and runs make sure gotop builds and runs
tag commit with version number tag commit with version number
export GitHub token in shell export GitHub token in shell
run `sudo dockerd`
run `goreleaser --rm-dist -f build/.goreleaser.yml` run `goreleaser --rm-dist -f build/.goreleaser.yml`
update AUR package update AUR package