2017-03-19 23:39:57 +01:00
|
|
|
# Build
|
|
|
|
|
2017-09-03 03:53:01 +02:00
|
|
|
To build `ctop` from source, ensure you have [dep](https://github.com/golang/dep) installed and run:
|
2017-03-19 23:39:57 +01:00
|
|
|
|
|
|
|
```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
|
|
|
|
```
|