Skip to content

Commit

Permalink
Merge pull request aksakalli#55 from pascalandy/master
Browse files Browse the repository at this point in the history
Running gtop in Docker
  • Loading branch information
aksakalli authored Jul 31, 2019
2 parents ea0661b + bda0d00 commit 5c1ffdd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:4-slim

ENV LANG=en_US.utf8 \
TERM=xterm-256color

RUN apt-get update -y && apt-get upgrade -qy && \
npm install gtop -g

ENTRYPOINT ["gtop"]
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,33 @@ System monitoring dashboard for terminal.
$ npm install gtop -g
```

### Docker

**To try it on the fly**, just run:

```
docker run --rm -it \
--name gtop \
--net="host" \
--pid="host" \
devmtl/gtop:stable
```

**To use you own docker image:**:

- Clone this repo
- Build the docker image (from the Dockerfile) them, run the image

```
docker build -t gtop .
docker run --rm -it \
--name gtop \
--net="host" \
--pid="host" \
gtop
```

### Usage

Start gtop with the `gtop` command
Expand Down

0 comments on commit 5c1ffdd

Please sign in to comment.