add build section to docs

This commit is contained in:
Bradley Cicenas
2017-03-19 22:39:57 +00:00
parent 2b2338805b
commit 82677d52ef
2 changed files with 22 additions and 27 deletions

20
_docs/build.md Normal file
View File

@@ -0,0 +1,20 @@
# Build
To build `ctop` from source, ensure you have a recent version of [glide](https://github.com/Masterminds/glide) installed and run:
```bash
go get github.com/bcicen/ctop && \
cd $GOPATH/src/github.com/bcicen/ctop && \
make build
```
To build a minimal Docker image containing only `ctop`:
```bash
make image
```
Now you can run your local image:
```bash
docker run -ti --name ctop --rm -v /var/run/docker.sock:/var/run/docker.sock ctop
```